to debug my scripts I switched back to the beginning starting with the wizard to generate a basic code for entry-handling without Iorders.
But there is only 1 entry instead of 2 with the code from wizard:
protected override void Initialize()
{
SetProfitTarget("L1", CalculationMode.Ticks, 5);
SetStopLoss("L1", CalculationMode.Ticks, 4, false);
SetProfitTarget("L2", CalculationMode.Ticks, 8);
SetStopLoss("L2", CalculationMode.Ticks, 4, false);
CalculateOnBarClose = true;
}
protected override void OnBarUpdate()
{
// Condition set 1
if (RSI(5, 1)[0] < 25)
{
EnterLong(1, "L1");
EnterLong(2, "L2");
}
}
When I do it without the wizard I have also only 1 entry instead of 2, no matter if I have in Initialize
EntriesPerDirection = 2; EntryHandling = EntryHandling.AllEntries;
OR
EntriesPerDirection = 1; EntryHandling = EntryHandling.UniqueEntries; //(which I dont want to have to avoid additonal entries)
Whats wrong here please?
Thank you!
Tony
Comment