Proフィットネス目標の計算
2件の返信
こんにちは,
I’m trying to calculate the profit target to be the same distance as the SL. I’ve had a two issues trying to do this.
First:
On the pending order I have in the Stop Loss setting OpenPrice(magic#). This doesn’t seem to be working like I assumed.
Second:
In the Profit Target setting I have–
((OpenPrice(9) – OpenPrice(10)) + OpenPrice(9)
When doing the math on the calculator the price comes out correct. But the EA Wizard doesn’t set any SL nor PT for these.
This seems like it should be simple math. Any suggestions on how to fix to get the correct SL and PT?
Thanks for your time.
ジェームズ
0
the problem is that these functions are called before the order is placed, so in live trading they don’t know what is the open price.
It can be used by a separate rule – create a rule that checks that order is open and its Profit Target is 0, then you can get its open price or stop loss and compute & set profit target
マーク
StrategyQuantアーキテクト
0
Thank you Mark. I should have thought of that. I’ll make a rule following the entry to adjust the PT. Thanks again.
0
2件の返信を表示中 - 1 - 2件目 (全2件中)