The OnTick function doesn´t seem to update every tick
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 ) |
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 agree to website policy and terms of use
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.