forexflash
- Joined Jun 2009 | Status: <-That's how u gonna b, in the END! | 1,509 Posts
100 Fold Challenge->Interested? ->https://www.forexfactory.com/thread/32152
Close all open trades if current total open lotsize exceeds"X" 0 replies
Close all pending orders and open orders once they reach profit target 3 replies
script to "close open orders" and "open opposite orders" 3 replies
Once you can trade profitably are you rich? 43 replies
Close all orders @ once 6 replies
Dislikeddoes anyone know the script to close all trades at market close friday night?Ignored
DislikedNo worries. It's easy. Try this script. I can edit it further if you need.
Set the lots value to 0 if you don't want a specific pair to trade. Also, set the buy value to false if you want a sell trade to execute. I could make that a string value and have you type in a "b" or "s" if you want.Ignored
DislikedNo worries. It's easy. Try this script. I can edit it further if you need.
Set the lots value to 0 if you don't want a specific pair to trade. Also, set the buy value to false if you want a sell trade to execute. I could make that a string value and have you type in a "b" or "s" if you want.Ignored
Dislikedas much as I like the script but when I set specific pair to false it did not work -- it just open all pair to buy when the first pair (EU) set to buy or all pair to sell when EU set to sell.
can anybody fix the script?Ignored
void OPSELL() { double x; x = 100*(1-(Close[2] / Close[1])); double StopLossLevel; double TakeProfitLevel; if(StopLoss>0) StopLossLevel=Ask+StopLoss*Point; else StopLossLevel=0.0; if(TakeProfit>0) TakeProfitLevel=Bid-TakeProfit*Point; else TakeProfitLevel=0.0; ticket1=OrderSend(Symbol(),OP_SELL,ManualLots,Bid,Slippage,StopLossLevel,TakeProfitLevel,Koment,MagicNumber,0,DeepPink); ticket2=OrderSend(Symbol(),OP_SELL,ManualLots,Bid,Slippage,StopLossLevel,TakeProfitLevel,Koment,MagicNumber,0,DeepPink); ticket3=OrderSend(Symbol(),OP_SELLLIMIT,ManualLots,Bid+HalfCandleHeight,Slippage,StopLossLevel,TakeProfitLevel,Koment,MagicNumber,0,DeepPink); ticket4=OrderSend(Symbol(),OP_SELLLIMIT,ManualLots,Bid+CandleHeight,Slippage,StopLossLevel,TakeProfitLevel,Koment,MagicNumber,0,DeepPink); Print("sold because x=",x); }