- FOREX - Trends, forecasts and implications 2015
- Difference between Tick Size and Point?
- How to close all of your open positions at the same trailing stop price?
What value do you get in the built-in variable Point? 0.0001 or 0.00001?
How to know built-in varaiable Point? It seems it is 0.00001, because when I use stop loss, it only change SL*0.00001. How can I change back to only 4 digits after decimal point?
How to know built-in varaiable Point? It seems it is 0.00001, because when I use stop loss, it only change SL*0.00001. How can I change back to only 4 digits after decimal point?
Add this statement to your init() to see the actual value:
Print( "Point = " + Point );
If it says 0.00001 then you have two options to fix it:
1) change all references to Point with your variable/function that will hold the correct value.
2) multiply your SL/TP levels by 10
Add this statement to your init() to see the actual value:
Print( "Point = " + Point );
If it says 0.00001 then you have two options to fix it:
1) change all references to Point with your variable/function that will hold the correct value.
2) multiply your SL/TP levels by 10
*change all references to Point with your variable/function that will hold the correct value.*
Where is this folder would this be located?
In your init() function:
.
//This will multiply by 10 any settings you want if it's a tenth-of-a-pip broker. You can use them normally as PIPs in any calculation further down in the EA.
if(Point == 0.001 || Point == 0.00001){
StopLoss *= 10;
TakeProfit *= 10;
}
.
Hope this helps,
Jon
Don't forget to alter your slippage value in the same way!
CB
Add this statement to your init() to see the actual value:
Print( "Point = " + Point );
If it says 0.00001 then you have two options to fix it:
1) change all references to Point with your variable/function that will hold the correct value.
2) multiply your SL/TP levels by 10
fwiw - Print() defaults to 4digit resolution.
Must employ DoubleToStr(Point,Digits) of better still, to see max resolution use DoubleToStr(Point,8)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use