How to edit code to make SL/TP based on % of entry price
1件の返信
マークさん、こんにちは,
I would like to adjust code for meta trader to make SL/TP based on % of entry price. Is it possible to add or replace
some code from the original SQ template ? If so, please help me for that code as following condition :
Stop-loss price = Entry price x (1+S/100)
I will use your code to edit my EA manually.
ありがとう、,
Sarids
0
こんにちは,
yes, this seems to be correct computation.
You can edit it in the function openOrderWithErrorHandling() – there the EA places the order and then its SL and PT.
You can use MQL function OrderOpenPrice() to get the actual entry price.
マーク
StrategyQuantアーキテクト
0
1件の返信を表示中 - 1 - 1件目 (全1件中)