2次発動のトリガーに関するヘルプ
2件の返信
こんにちは,
I’m having trouble working out how to get the next order after a loss to take a different lot size.
IF(buy rules)=True
Then(assign variable) = 1
IF(variable)=1
Then(enter buy)
(assign variable) = 0
The above code works all day long. The problem is in the next piece (I think).
IF(closed p/l 0,0) <0
Then (assign variable) = 2
IF(variable)=2
&& (buy rules) = true
THEN(enter buy w/larger lot)
This seems to never take the larger trade after a loss. Is there something I’m missing?
Thanks for any help with this issue.
ジェームズ
0
if it doesn’t work it looks like the second two rules are never triggered.
It depends also on how exactly it is done, if you’ll post the strategy here I can look at it.
You should be aware that rules are evaluated in order they are created, so your first rule always sets the variable to 1, and your second rule then always make a trade.
マーク
StrategyQuantアーキテクト
0
Thanks Mark.
I finally reversed the order and the trades execute correctly.
Thanks again.
0
2件の返信を表示中 - 1 - 2件目 (全2件中)