Download MetaTrader 5
To add comments, please log in or register
Share your knowledge. Become a well-known developer!
Praveen
7
Praveen 2016.03.02 06:42 

Hi,

I have created an EA, it is based on grid system, I coded to place BUY STOP and SELL STOP orders with TP . But I am trying to place the same order as previous order.

Example:

EURUSD Buy@1.08550 and TP 1.08650

If the TP hits then I want to place a BUY STOP order at 1.08550 price with TP as same.

Please help

whroeder1
13597
whroeder1 2016.03.02 11:45  
epraveen: Please help
With what?
  1. You've stated no problem (only what you are trying to do.)
  2. Provided no code.
  3. learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Vasyl Nosal
18199
Vasyl Nosal 2016.03.03 10:45  

EURUSD Buy@1.08550 and TP 1.08650

If the TP hits then I want to place a BUY STOP order at 1.08550 price with TP as same.

 

TP=Current price is 1.08650

You want to set buystop to 1.08550

!!! 

Vasyl Nosal
18199
Vasyl Nosal 2016.03.03 10:48  

It must be buylimmit.

 

How to chek when to set it?

chek highest price of buystop or buylimmit

if(Bid>=last_price+step*Point) ordersend... 

/
To add comments, please log in or register