After being filled 1st order this code executes but:
1) The profit target and stop loss of each entry ( twoB and treeB ) are not executed individually ; I want profit of entryorder2 = 12 ticks for entry2, and profit for entry3 = 9 but I dont get an individual profit ant target for each entry. How can I do ?
Note : I have this setting :
EntriesPerDirection = 1;
EntryHandling = EntryHandling.UniqueEntries;
2) How can I know the status of the position 1; I only know that the order was filled.
entryOrder2 = EnterLongLimit(1, entry1 - 0.7 , "twoB");
SetProfitTarget("twoB", CalculationMode.Ticks, 12);
SetStopLoss("twoB", CalculationMode.Ticks, 15, false);
DrawDot("Stop2B" + CurrentBar , 0, entry1 - 0.7, Color.Orange);
entryOrder3 = EnterLongLimit(1, entry1 - 1.8 , "treeB");
SetProfitTarget("treeB", CalculationMode.Ticks, 9);
SetStopLoss("treeB", CalculationMode.Ticks, 8, false);
DrawDot("Stop3B" + CurrentBar , 0, entry1 - 1.8, Color.Orange);
Comment