Forum

Question - Context Checks Before Entering a Trade

Good day All! I am trying to create a method to check if trading is allowed, if the trading context is busy, if the symbol has restrictions (long only/short only), etc. Here is what I came up with, I am wondering if anyone would have some suggestions concerning other Account/Symbol related prechecks

Confusion about the TimeFrame Parameter in Predefined Indicator Functions

Hi everyone! I trying to code a type of " Envelope " that would use ATR to adjust its "deviation" from the Base SMA. All Arrays present in the code have been Set as Index Buffers and are declared as dynamic. Here my attemp at it: int OnCalculate ( const int rates_total, const int prev_calculated