Converting a price range to Pips
4 replies
ssdex
11 years ago #114191
Hello,
I’ve been working to have a price range be converted to pips so that I can use for calculating Lot Size. I have everything figured out but how to get the price range converted to pips.
Here’s what I use for the Stop Loss: (Highest(10)[1]+convertToRealPips(5))
This puts the SL in the correct place and has been working well.
When trying to get the range between Stop Loss and the Open Price in pips to do the calculation is where I’ve been stuck. Here’s what I’ve been trying to get to work (this is a variable).
RiskInRealPips = ((Highest(10)[1]-OrderSL(ML1))+ConvertToRealPips(SLAddPips))
I was hoping this would get the range in Real Pips between the SL and Opening Price.
When I put the variable into the equation for calculating the Lot Size it is way off. LOL
Here is the equation:
LotsToTrade = (((TradeRiskPercent/(ConvertToPips(RiskInRealPips)*2)/PipValue)
Any help would be very appreciated. Thanks everyone for making this an awesome learning forum.
Regards,
James
0
Tomas Matejka
11 years ago #132608
Hi,
what is OrderSL(ML1) ? Is it the entry price?
0
ssdex
11 years ago #132640
Hello Tomas262,
OrderSL(ML1) is the Stop Loss price of the current trade. That price will be the open price of the second trade and the last swing high or low (depending on direction) will become the Stop Loss for the 2nd trade.
Let me know if I’m making sense. Thanks for all your help.
Regards,
James
0
Tomas Matejka
11 years ago #132742
Hi,
upload your Wizard file if you can. Cannot see account balance in your formula. Also not sure why you multiply RiskInRealPips by 2.
0
ssdex
11 years ago #132808
Thanks Tomas262
I figured out a solution to getting the pips being risked and the calculation needed for the Direct Rates. I have an idea for the Indirect and Cross Rates that should work.
Thanks again for all your help and support.
Regards,
James
0
Viewing 4 replies - 1 through 4 (of 4 total)