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

Back to topics list To post a new topic, please log in or register
avatar
1
epraveen 2016.03.02 07: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

avatar
13001
WHRoeder 2016.03.02 12: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.

avatar
872
eevviill 2016.03.03 11: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

!!! 

avatar
872
eevviill 2016.03.03 11: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... 

Back to topics list  

To add comments, please log in or register