I wonder if someone would code an EA for manual traders, using movable boxes to open and close positions, using code by matrixebiz, as found in Steve's BOJ thread on forexfactory http://www.forexfactory.com/showthread. ... ost3225961...
Code: Select all
if (ObjectFind("CloseAll") == -1)
{
ObjectCreate("CloseAll", OBJ_LABEL, 0, 0, 0);
ObjectSet("CloseAll", OBJPROP_BACK, 0);
ObjectSet("CloseAll", OBJPROP_CORNER, 0);
ObjectSet("CloseAll", OBJPROP_XDISTANCE, 6);
ObjectSet("CloseAll", OBJPROP_YDISTANCE, 50);
ObjectSetText("CloseAll","CloseAll", 12,"Times New Roman",Blue);
}
if (ObjectFind("CloseAll") != -1&&ObjectGet("CloseAll", OBJPROP_XDISTANCE)!=6)
{
ObjectSet("CloseAll", OBJPROP_XDISTANCE, 6);
ObjectSet("CloseAll", OBJPROP_YDISTANCE, 50);
CloseAllTrades();
}
Just change the name of the object, and the name of the routine that it calls, for Buy, Sell, Close, and any other functions you'd like to kick off manually, and adjust the co-ordinates.
For now, I'd like this EA to make the trade, set BreakEven, BreakEvenProfit, StopLossType, StopLossSize, and TakeProfit, then manage the trades, but if someone makes MPMBM (see http://www.stevehopwoodforex.com/phpBB3 ... f=12&t=778, then it will need to be able to pass those settings on.
Take care,
&
Have fun!
Radar =8^)