Closing Order On PT hit
4件の返信
I have two pending orders setup, when one is hit and then proceeds to the take profit I want to close the other pending order.
At the moment I have tried OrderPT(magic number)=TargetProfit
But it does'nt seem to be closing the other order.
何かアイデアはありますか?
Cheers,
ジェームズ
0
I have two pending orders setup, when one is hit and then proceeds to the take profit I want to close the other pending order.
you can use this kind of condition:
OrderClosedThisBar(magic number) && Closed P/L(magic number) > 0
this will be triggered when order with given magic number just ended and ended in profit
マーク
StrategyQuantアーキテクト
0
I have a stop order created at a price level. How do I delete it if conditions are no longer favorable and the stop order was not hit?
Does EA automatically delete itself when the IF conditions are no longer valid or do I have to create a rule to delete this pending stop order?
If I have to delete, how do I do it because I found conditions saying existing pending order, but I could find in the THEN conditions how to close/delete the pending order. Thanks.
ステアルノ
0
こんにちは,
every stop/limit order can have expiration (Bars valid property) – you can specify how many bars it should be valid. After that it will be closed automatically.
You can also close any order manually by calling function Close position – this will close both open and pending orders.
よろしくお願いいたします。,
マーク
マーク
StrategyQuantアーキテクト
0
4件の返信を表示中 - 1 - 4件目 (全4件中)