Forum

how can I limit the trades to a maximum of 1 for every new bar that appears?

#include<Trade\Trade.mqh> CTrade trade; void OnTick () { double Bid = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits ); double Ask = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); double High0 = iHigh ( NULL , 0 , 0 ); double Low0

Going short isn't working please help...

Hi There Simple piece of code that I can't get to work -> #include<Trade\Trade.mqh> CTrade trade; void OnTick () { double Bid = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_BID ), _Digits ); double Ask = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits );

Calculating candle Wick

Hi guys I'm sorry I'm a noobie struggling here. I'm trying to calculate the wick of the latest candle if there's any, for example, if the current latest bar is red then the high minus the open should give you the top side wick and if the candle is green then the open minus the low will be the lower