This indicator summarizes the difference of opening and closing for a certain period of time, the main line, +
– Sums only bear bars;
– Sums up the only bull bars,
and also added a weighted average of the total period.
extern int IdMain =12; // the main line (drawn on the chart points) of the indicator, it is better (but not necessarily) if it is always between bullish and bearish lines, so Pick up the parameters accordingly.
extern int IdBull = 12; / / line of bull, it is better if its value is equal to the bear and the main line
extern int IdBear = 12; / / a bear line, it is better if its value is equal to the bovine line and the main
extern int IdArray = 12; / / all sma line – the value of smoothing of all the lines on the graph, or so-called The SIGNAL lines.
Presented on the display is a histogram displaying the difference bullish line (white bars) and the SMA and the bear line (black bars) and the SMA. More information is written inside the code indicator. Recommended settings are multiples of 12, as well as options to those numbers which are divided at the same time on 3 and 4, the maximum 108, minimum 12, possibly 9 and 7. These assumptions relate to studies of other work, so it is only a number.
This indicator in the tester strategies:
This example for evidence-building indicator.
These are not optimized, deals are made on opening a bar, so there is no need to test “every tick”, the open mode of transactions 1 at the bar. t/f Daily, tool: EURUSD, period: all available 1999 and 2010.Stop Loss and Profit at the level of 500 points. Withdrawal shall be effected by the condition of the entrance opposite transaction. Indicators options: all 12., Lot: 0,1 continuous
Conditions of entry Long:
//-2- / / -2 –
MainAccumulation1-MainSMA1>0 // if the main line above a smoothed value
&& BullPressue1-Point>0 // if the bullish pressure above 0
&& BearPressue1-Point>0 // if the bearish pressure above 0
&& MainAccumulation1-Point>0 // if the main line above 0
Условия входа шорт: Conditions of entry shortlisted:
//-2- / / -2 –
MainAccumulation1-MainSMA1<0 // if the main line below its smoothed values
&& BullPressue1-Point<0 //if the bullish pressure below 0
&& BearPressue1-Point<0//if the bearish pressure is below 0
&& MainAccumulation1-Point<0 //if the main line is below 0
Terms of the output is strictly opposed.
Below is a schedule change of assets (Equity), the accuracy of 5 digits, as you see, after the discovery of any of the transactions, the equity is rarely fell below -200 points.