double stopLoss, takeProfit ; stopLoss = ( High [ 2 ] - Low [ 2 ]) * 2 ; if ( BuyPrimCheck1 () && BuyPrimCheck2 () && BuyWickCheck () && BuyDisplace () == true ){ ticket = OrderSend ( Symbol (), OP_BUY, 10, Ask, 3, Ask - stopLoss , Ask + 50 * Point, "", 16384, 0, Green ) ; return ( 0 ) ; }
thanks for pointing that out phy, High and Low are obviously already Point values!
*duh!* i was way to tired yesterday to have notice,d. thank you
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
If I use int values instead e.g stopLoss = (70-20)*2; the SL works fine.
Any suggestions?