I use this engine to generate strategies.
I haven't seen for a while any different logic except this in comparison with metatrader 5 engine.
I think there might be a bug in the logic generation.
if LongEntrySignal
if (ShortEntrySignal
and Not LongEntrySignal)
if ((LongExitSignal
and Not LongEntrySignal)
and (MarketPosition("Any", MagicNumber, "") is Long))
if ((ShortExitSignal
and Not ShortEntrySignal)
and (MarketPosition("Any", MagicNumber, "") is Short))
Status changed from New to Waiting for information
where is the bug exactly? I don't see anything bad in this logic.
But in Multicharts I see same logic over and over again.
I'm missing other logic types, because it leads to less diversified portfolio.
For example I saw different logic like this in MetaTrader5:
if LongEntrySignal
and Not ShortEntrySignal
and Not LongExitSignal)
if (ShortEntrySignal
and Not LongEntrySignal
and Not ShortExitSignal)
if ((LongExitSignal
and (MarketPosition("Any", MagicNumber, "") is Long))
if ((ShortExitSignal
and (MarketPosition("Any", MagicNumber, "") is Short))
The same strategy shoudlk have the same logic in all the engines.
If you have strategy that has different logic in different engines please attach it here in .sqx format
The problem is same logic in all strategies generated by MultiCharts engine.
if LongEntrySignal
and Not ShortEntrySignal
and Not LongExitSignal)
if (ShortEntrySignal
and Not LongEntrySignal
and Not ShortExitSignal)
...
was from older strategy template, and if you generate MultiCharts code for it you'll see the same logic also in EasyLanguage.
The newest strategy architecture that is used in the latest SQ X builds is this:
if LongEntrySignal
if (ShortEntrySignal
and Not LongEntrySignal)
if ((LongExitSignal
and Not LongEntrySignal)
and (MarketPosition("Any", MagicNumber, "") is Long))
if ((ShortExitSignal
and Not ShortEntrySignal)
and (MarketPosition("Any", MagicNumber, "") is Short))
There are no variations, unless you use your own strategy template.
Have you considered dynamic logic generation using predefined templates?
I think It if can help to achieve better diversification.
Status changed from Waiting for information to Refused
But it is possible to make something like this using custom projests - you can have for example 3 Builder tasks one after each other, each using its own template, and storing strategies to the same databank.