+ Reply to Thread
Results 1 to 4 of 4
 0 Attachment(s)    

Thread: Open trade on arrow

  1. #1
    Member
    Join Date
    Mar 2009
    Posts
    31

    Default Open trade on arrow

    Hi Funyoo, can you point me to any of your ea code to open single trade on arrow.

    Thank you in advance.

  2. #2
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,455

    Default

    Quote Originally Posted by altoronto View Post
    Hi Funyoo, can you point me to any of your ea code to open single trade on arrow.

    Thank you in advance.
    Hi altoronto,

    Most of the time, it works like that :

    Code:
    double ArrowUP=iCustom(Symbol(),0,"Arrow indicator",0,1);
    double ArrowDN=iCustom(Symbol(),0,"Arrow indicator",1,1);
    
    if(ArrowUP>0&&ArrowUP!=EMPTY_VALUE)Buy=true;
    if(ArrowDN>0&&ArrowDN!=EMPTY_VALUE)Sell=true;

  3. #3
    Member
    Join Date
    Dec 2008
    Posts
    121

    Default

    Hi funyoo,

    A little help here if you free.

    How to code use lines instead of arrows similar to below. Say, buy above green line and sell below red line.

    cheers.

    Quote Originally Posted by funyoo View Post
    Hi altoronto,

    Most of the time, it works like that :

    Code:
    double ArrowUP=iCustom(Symbol(),0,"Arrow indicator",0,1);
    double ArrowDN=iCustom(Symbol(),0,"Arrow indicator",1,1);
    
    if(ArrowUP>0&&ArrowUP!=EMPTY_VALUE)Buy=true;
    if(ArrowDN>0&&ArrowDN!=EMPTY_VALUE)Sell=true;

  4. #4
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,455

    Default

    Quote Originally Posted by claypot View Post
    Hi funyoo,

    A little help here if you free.

    How to code use lines instead of arrows similar to below. Say, buy above green line and sell below red line.

    cheers.

    Hi claypot,

    Something like that :

    Code:
    double GreenLine=iCustom(Symbol(),0,"Line indicator",0,1);
    double RedLine=iCustom(Symbol(),0,"Line indicator",1,1);
    
    if(Ask>GreenLine)Buy=true;
    if(Bid<RedLine)Sell=true;

+ Reply to Thread

Similar Threads

  1. Add arrow signals
    By funyoo in forum MQL programming
    Replies: 1
    Last Post: 10-19-2009, 18:33
  2. HMA trade
    By przem81621 in forum Expert advisors backtesting
    Replies: 10
    Last Post: 04-28-2009, 19:22
  3. Open Trade Question
    By altoronto in forum MQL programming
    Replies: 4
    Last Post: 04-14-2009, 20:54
  4. How can i control MAXPIPS between next open trade ??
    By begu in forum MQL programming
    Replies: 3
    Last Post: 04-04-2009, 11:19
  5. Code to remove standard arrow in EA
    By darkkiller in forum MQL programming
    Replies: 11
    Last Post: 03-25-2009, 10:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts