Andrea Pasquini / Publications
Forum
Methods using panel
Hi everyone I'm creating a panel for an indicator, the problem is the methods I can use. Until now when I make indi i use: - OnInit to initialize; - OnCalculate to catch the tick movement; - OnChartEvent to catch the mouse interactions; - OnDeinit to destroy all at the end; For Ea OnTick instead
Panel and Indicator
Hi write a simple indicator with a buffer inside: #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 clrBlue #property indicator_type1 DRAW_ARROW #property indicator_style1 STYLE_SOLID #property indicator_width1 3 double Morning[]; int newbars; int OnInit
AccountBalance problem
int OnInit () { IndicatorShortName( "Twiggs Money Flow - Balance:" + AccountBalance()); } Hi everyone Using the code above, if I insert indicator in chart it works correctly, when I close and reopen MT4, the indicator display balance 0, I must delete indicator and re-insert it into the chart... How