I am trying to scale into my position (max 3 contracts). But its not working as expected.
In my strategy I am using:
EntriesPerDirection = 3;
EntryHandling = EntryHandling.AllEntries;
Then in OnBarUpdate() i am doing:
if (i am flat) {
if (my condition) {
Print("Entering first contract");
EnterLong(1, @"myEntry"); // works fine
}
}
if (i am not flat) {
if (my condition) {
Print("Entering second contract");
EnterLong(1, @"myEntry2"); // works fine
}
else if (my condition 2) {
Print("Entering third contract"); // prints in console
EnterLong(1, @"myEntry3"); // doesn't work
}
}
I also tried:
EntriesPerDirection = 1;
EntryHandling = EntryHandling.UniqueEntries;
This also doesn't work it also only enters 2 contracts max.
Is there something I'm doing wrong?

Comment