Topic: upbar and downbar

I have noticed that in case of many strategies started with "Bar Open" or "Bar Close" it not clear whether you go long or short. For this reason it would be an interesting idea to add UpBar - Downbar distinction. With this feature will will be able to design stratgies such as:

- Open long on an upbar if the MA(14) is falling

adding a bar counter could be another important contribution - in this case we will be able to open positions after specified number of bars.

Re: upbar and downbar

ldnfx wrote:

I have noticed that in case of many strategies started with "Bar Open" or "Bar Close" it not clear whether you go long or short. For this reason it would be an interesting idea to add UpBar - Downbar distinction. With this feature will will be able to design stratgies such as:

- Open long on an upbar if the MA(14) is falling

You can already do this, for instance use my Custom Moving Average Crossover indi. It has been discussed many times, most recently here: http://forexsb.com/forum/topic/3130/not … oking-for/

Re: upbar and downbar

footon, thanks for your suggestions but I actually wanted to point out that there is a certain inconsistency in this trading logic. For example we cannon determine whether the position which will be opened following a signal such as "the fast MA crosses the slower MA downwards" is long or short. It is also the case of similar signals: "the bar opens below the upper band" (see Bollinger Bands indicator as the trading logic module). Such logic reduces volatility to any bar which is below the upper bar but it doesnt tell us whether its buy or sell order. In order to avoid this difficulty I propose new logic based on upbars/downbars.

Btw. your indicator is interesting but it lacks Vidya MA - could you please add this feature?

Re: upbar and downbar

ldnfx wrote:

there is a certain inconsistency in this trading logic. For example we cannon determine whether the position which will be opened following a signal such as "the fast MA crosses the slower MA downwards" is long or short.

Btw. your indicator is interesting but it lacks Vidya MA - could you please add this feature?

I don't follow you, if you choose "the fast MA crosses the slower MA downwards" it is long condition, short condition will be vice versa. In FSB you set up logics for long conditions, shorts are mirrored long conditions, opposite conditions in other words.

By Vidya you mean smoothing method?

5 (edited by ldnfx 2012-06-14 01:40:55)

Re: upbar and downbar

I am aware that shorts are mirrored by opposite conditions but from my experience FSB doesnt recognize them very well in some scenerios. A good example is Bollinger Bands, could you please explain where is the following condition relating to?

http://s17.postimage.org/a8dtrmssb/Logic.jpg

By Vidya I mean Variable Index Dynamic Average - http://www.mql5.com/en/code/75

Re: upbar and downbar

FSB doesn't recognize them very well in some scenarios

Such scenario would be a major issue.


A good example is Bollinger Bands, could you please explain where is the following condition relating to?

http://i.imgur.com/yNQBu.png

Long is allowed when the bar opens below Up BB.
Short is allowed when the bar opens above Down BB.

If BB was the only condition, when the bar opens between both bands, FSB would announce an ambiguous bar since both long and short would be allowed. So Long position would be open only when bar opens below Lower BB and short position when bar opens above Up BB.

     Bar Open ->          Short allowed
Upper BB ------------------------

     Bar Open ->           Long and Short allowed

Lower BB ------------------------

     Bar Open ->           Long allowed

Re: upbar and downbar

Thank you for the explanation Mr Popov. Is there any way to solve this issue? I found BB a good way to filter out unwanted spikes.

More resources on Vidya
http://etfhq.com/blog/2011/02/22/variable-moving-average-vma-volatility-index-dynamic-average-vidya/

Re: upbar and downbar

Vidya MA is already included in FSB, do you want a MA crossover indi of it?

9 (edited by ldnfx 2012-06-16 02:54:27)

Re: upbar and downbar

yes, that's exactly what I'm looking for

Re: upbar and downbar

ldnfx wrote:

yes, that's exactly what I'm looking for

Seems to work, find it below. If any issue appears, report here.

Post's attachments

Vidya MA Crossover.cs 15.32 kb, 33 downloads since 2012-06-29 

You don't have the permssions to download the attachments of this post.