Topic: Simple Crossover of a Moving Average

Hello geniuses!
I want the parameters for a simple strategy:
A buy or sell trade during a crossover of 14 EMA.
The trade stays in place with a Stoploss of 20 and Take profit of 60 until there is a reverse crossover...then the current trade is closed and an opposite trade is opened immediately.
1. During the trade if the STP/TP are taken, then there wont be another trade until there is a crossover.
2. If the STP/TP are not taken, and there is a crossover, then the trade is closed at either a plus (less than +60) or minus (less than -20).
Naturally I want to trade this strategy manually but I prefer to watch the terminal make the trades to prevent intervention of emotion and of course I may not be around.
I deeply appreciate everyone who take the time to help me with this!
Thanks Y'all.
'Wale

Re: Simple Crossover of a Moving Average

Is it this?

A same direction signal - Does nothing
An opposite direction signal - Reverses the position
Permanent Stop Loss - 200
Permanent Take Profit - 600

[Opening Point of the Position]
Bar Opening
     Enter the market at the beginning of the bar
     Base price  -  Open

[Opening Logic Condition]
Moving Average
     [ A ]   The bar opens above the Moving Average after opening below it
     Smoothing method  -  Exponential
     Base price  -  Close
     Period  -  14
     Shift  -  0
     Use previous bar value  -  Yes

[Closing Point of the Position]
Close and Reverse
     Close all positions and open a new one in the opposite direction

Re: Simple Crossover of a Moving Average

Hello...Thanks!
I will quickly check that now...and will let you know!
THANKS SO MUCH!!!

Re: Simple Crossover of a Moving Average

Phew that was so close...!
But I notice that the trades are placed immediately after the crossover...
I need some form of a filter:
The trade should be placed after a full candle opens and closes after a crossover.
That means usually after an overlapping candle, the trade is placed at the close of the third candle...Thanks for your effort...its much appreciated!!!

Re: Simple Crossover of a Moving Average

I hope this image really show exactly what am talking about:
The is first of all a breakout out candle, the I wait for another one to open and close completely under the MA (above for a buying signal), then after that...I now make the trade at the beginning of the third candle.

Post's attachments

6sig.gif
6sig.gif 1.69 kb, file has never been downloaded. 

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

Re: Simple Crossover of a Moving Average

wtoalabi wrote:

Phew that was so close...!
But I notice that the trades are placed immediately after the crossover...
I need some form of a filter:
The trade should be placed after a full candle opens and closes after a crossover.
That means usually after an overlapping candle, the trade is placed at the close of the third candle...Thanks for your effort...its much appreciated!!!

Try to change from bar open to bar close
and change the shift vaule from 0 to 3?

Re: Simple Crossover of a Moving Average

togr wrote:
wtoalabi wrote:

Phew that was so close...!
But I notice that the trades are placed immediately after the crossover...
I need some form of a filter:
The trade should be placed after a full candle opens and closes after a crossover.
That means usually after an overlapping candle, the trade is placed at the close of the third candle...Thanks for your effort...its much appreciated!!!

Try to change from bar open to bar close
and change the shift vaule from 0 to 3?

Thanks Togr!
But it doesnt seem to work!

Re: Simple Crossover of a Moving Average

You should select  the condition from the drop down menu in the Moving Average box that says "The bar opens above the moving average".

Re: Simple Crossover of a Moving Average

SpiderMan wrote:

You should select  the condition from the drop down menu in the Moving Average box that says "The bar opens above the moving average".

Thanks Spiderman, but I have already done that, instead of the order coming through during the third candle, it is still immediately after a crossover...
Thanks!

Re: Simple Crossover of a Moving Average

Can you post a picture of the actual bars so I can look at it.

11 (edited by wtoalabi 2013-02-28 07:43:52)

Re: Simple Crossover of a Moving Average

This the screenshot:
As you can see, the trades open immediately after the crossover...instead of after a completely closed candle.
Thanks all!

Post's attachments

sshot-1.png
sshot-1.png 27.81 kb, file has never been downloaded. 

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

12

Re: Simple Crossover of a Moving Average

wtoalabi wrote:

... As you can see, the trades open immediately after the crossover...instead of after a completely closed candle ...

I might be wrong here (I have very little experience with the indicator code in FSB) but isn't this the expected result?

My understanding is that this is how FSB works (ie. the indicator value is true as soon as the underlying logic condition is met (in this case when the crossover occurs), and it does not wait until the end of the bar to fire the order.

Would you be able take a screenshot of the Bar Explorer for the bar when the trade occurs please?  To open this you can double-click on the order entry in the Journal.  My guess is that the Bar Explorer will show that your trade has executed inside the bar, as expected.

Re: Simple Crossover of a Moving Average

Are you sure the opening point is set as follows:-

[Opening Point of the Position]
Bar Closing
     Enter the market at the end of the bar
     Base price  -  Close