testControl_Trade_Sessions

0 Views
0 Downloads
0 Favorites
testControl_Trade_Sessions
ÿþ//+------------------------------------------------------------------+

//|                                   testControl_Trade_Sessions.mq5 |

//+------------------------------------------------------------------+

//#define LoadSessionFromInputs // 'B5=85 A5AA89 87 input->2

#include <Forester\Control_Trade_Sessions.mqh> // ?>4:;NG5=85 :>40 4;O :>=B@>;O B>@3>2>9 A5AA88



int OnInit()  {   return(INIT_SUCCEEDED);  }





void OnTick() {

  static TRADE_SESSIONS TradeSession(_Symbol);//?>;CG5=85 2@5<5=8 >B:@/70:@ @K=:0 8 A>E@0=85=85 2 <0AA82K ?> 4=O< =545;8. K7K205BAO 1 @07 ?@8 70?CA:5 M:A?5@B0 (A<. static)

  if(!TradeSession.isSessionTrade(TimeCurrent())){Print("Market closed. OnTick return");return;}//

  

  // 20H8 459AB28O

  }



Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---