Hi,I want to set up a TP on my ea, which equals (High[2]-Low[2])*1.5
Which is simply put range of a certain bar multplied by 1.5..
My question is How do I type it correctly because it seems that i make a calculation error. Thank you.
This is what your code needs to check before placing or modifying Orders: Requirements and Limitations in Making Trades
Thank you for the reply.
I meant Bid - (High[2]-Low[2])*1.5, will that do? what should I add?
Thank you for the reply.
I meant Bid - (High[2]-Low[2])*1.5, will that do? what should I add?
ok i will play with stoplevel etc, but more important for me is the arithmetics, when i tried to print out(using Comment) this (High[2]-Low[2])*1.5 it gave me 0...
so this is what i am confused with.Thanks again,please advice.
ok i will play with stoplevel etc, but more important for me is the arithmetics, when i tried to print out(using Comment) this (High[2]-Low[2])*1.5 it gave me 0...
so this is what i am confused with.Thanks again,please advice.
so how should i calculate barlength that is already finished..?
ok i will play with stoplevel etc, but more important for me is the arithmetics, when i tried to print out(using Comment) this (High[2]-Low[2])*1.5 it gave me 0...
so this is what i am confused with.Thanks again,please advice.
Are you using (High[2]-Low[2])*1.5 directly for your print ?
If you are saving it as an int variable and then printing the variable, you would often see 0, so save it as a double

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,I want to set up a TP on my ea, which equals (High[2]-Low[2])*1.5
Which is simply put range of a certain bar multplied by 1.5..
My question is How do I type it correctly because it seems that i make a calculation error. Thank you.