Download MetaTrader 5

How to place an order as same as previous order in EA?

To add comments, please log in or register
Praveen
7
Praveen  

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
15574
whroeder1  
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
18950
Vasyl Nosal  

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
18950
Vasyl Nosal  

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