Results 1 to 4 of 4
 0 Attachment(s)    

Thread: Open trade on arrow

  1. #1

    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,003

    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

    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,003

    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;

Similar Threads

  1. Get the price of the last open trade
    By fxtester in forum MQL programming
    Replies: 0
    Last Post: 08-20-2014, 15:23
  2. Replies: 1
    Last Post: 09-03-2011, 21:22
  3. Replies: 0
    Last Post: 10-02-2010, 10:10
  4. Busy open trade
    By przem81621 in forum MQL programming
    Replies: 0
    Last Post: 05-08-2009, 22:24
  5. Open Trade Question
    By altoronto in forum MQL programming
    Replies: 4
    Last Post: 04-14-2009, 21:54

Tags for this Thread

100, free, funyoo, indicator, time

Posting Permissions

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