However, I started looking at the code for ExitLong and ExitShort and noticed a few things. I wanted to know whether this is possible.
1. Enter 1 long 50-lot order named "longOrder" (EnterLong(50, "longOrder"); )
2. Create 2 ProfitTarget orders and 2 StopLoss orders like this:
ExitLongLimit(25, 1000, "pt1", "longOrder");
ExitLongLimit(25, 1250, "pt2", "longOrder");
ExitLongStop(25, 950, "sl1", "longOrder");
ExitLongStop(25, 900, "sl2", "longOrder");
Won't this scale out the original 50-lot order. In addition to scaling, isn't this code essentially doing what SetStopLoss and SetProfitTarget do?
Thanks!
jon

Comment