Thanks for the reply.
My bad, foolish question. I'm using this pointvalueperlot() in the wrong place.
Actually, my question is about:
PossibleRisk_dollar = ( OrderOpenPrice()-OrderStopLoss() )*OrderLots()*what ?
BTW, what's the usual situation that this pointvalueperlot() could be used?
Try
PossibleRisk_dollar = ( OrderOpenPrice()-OrderStopLoss() )*OrderLots() / MarketInfo(Symbol(), MODE_TICKSIZE)*MarketInfo(Symbol(), MODE_TICKVALUE)
GumRai:
Try
Thank you, sir. Guess I begin to understand this.
joshatt: PossibleRisk_dollar = ( OrderOpenPrice()-OrderStopLoss() )*OrderLots()*what ?
PossibleRisk_dollar = ( OrderOpenPrice()-OrderStopLoss() )*OrderLots()*PointValuePerLot()
Note, I renamed it to DeltaValuePerLot since you multiply by a change in price (delta) not points, and expanded it to allow other pairs. See: Why is there NO Complete EA within the Code-Base? - MQL4 forum
Hey Joshatt,
that's not fair to completely change the question in the OP without warning.
Made my first reply seem nonsense. I have deleted it now.
GumRai:
Hey Joshatt,
that's not fair to completely change the question in the OP without warning.
Made my first reply seem nonsense. I have deleted it now.
Sorry, just wanted to save time for reading this thread. Didn't think it through. My fault.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Always dizzy about point,pip,tick. So I just borrow the following code from this forum:
Actually, my question is about:
PossibleRisk_dollar = ( OrderOpenPrice()-OrderStopLoss() )*OrderLots()*what ?