if (sl < Ask < tp){
True = non-zero and false = zero so you get: if( 3 < 2 < 1 ) if( false < 1 ) if( 0 < 1 ) if( true ) | if( 3 > 2 > 1 ) if( true > 1 ) if( 1 > 1 ) if( false ) |
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
What I´m trying to do here is write a basic GUI that calculates the lot size for me, and from where I can place orders and define SL and TPs. In this case, the Alert(1); only runs once and the function doesn´t seem to update with every new tick, and I cant figure out why it is, and because of that I cant calculate the lot size and display it to the GUI and eventually place an order. Is there any obvius bug Im missing? Im using <Deleted> btw.