Thanks, I'm the #7.
ERROR: The handle is invalid
How to code ?
who can think of the program ?
- if Buy-Signal : open Buy-Order 1; 2; 3; ( I must wait if I will open several orders ? wait or sleep ?)
- if Sell-Signal : close Order 1
- if Sell-Signal 2 && close Order 1: close Order 2 & 3
I can use a FTP client to finish this work. For example, "Super Flexible File Synchronizer". Make screen shot .gif first, use FTP client upload it realtime.
I think I am not a fool man.
Does anyone know how to code so that when you call an indicator in an EA it automatically attaches the called indicator to the chart your EA is attached to? This way it would visually be in the exact same time as what is being read by your EA.
You must attach both EA and indicator unless the indy is coded inside the EA.
how to code this:
I need to extract some info from last closed trade,
and after use some info from this last trade
if last trade profit >0 'lasttradeprofit = 1'
and if last trade <=0 'lasttradeprofit = 0'
lasttradeprofit = 1 // if last trade >0
lasttradeprofit = 0 // if last trade <=0
why comment(2 / 1) display 2 but comment( 1 / 2) display 0?
how to make comment(1 / 2) display 0.5 ?
I threw together an adjust trailing stop function for EAs, can someone check it out?
//| adjust trailing stop |
int orders = OrdersTotal();
int type = OrderType();
//-- Adjust trailing stop for BUYs
if (type == OP_BUY && OrderSymbol()==Symbol() && (OrderMagicNumber() == MagicNumber))
if (Ask-TrailingStop*Point > OrderOpenPrice() && Ask-TrailingStop*Point > OrderStopLoss())
//-- Adjust trailing stop for SELLs
if (type == OP_SELL && OrderSymbol()==Symbol() && (OrderMagicNumber() == MagicNumber))
if (Bid+TrailingStop*Point < OrderOpenPrice() && Bid+TrailingStop*Point < OrderStopLoss())
can anyone add sl for this expert .
Id like all orders have a fix sl
try this !
Please enable the necessary setting in your browser, otherwise you will not be able to log in.