PwR EVA

Place your new trading idea here to see if someone can automate it.
0002097
Posts: 9
Joined: Thu Nov 17, 2011 9:30 pm

PwR EVA

Post by 0002097 »

Hi guys! Here's a system I've been testing, back and forward. It seams to get nice results and I would like to automate it.
So, here it is:

Strategy Name: PwR EVA

Strategy Style: Trending

Favored Market Conditions: Trending

Entry Signal style:Indicator based and of course a little bit of common sense

Expected Trading Frequency: something around 5 and 8 trades a day

Strategy Expected Moves per trade: 3,75 the stoploss value

Time Frames: 5minutes

Times to Trade: 8.00 to 16.00 GMT

Pairs To Trade: Only tested eur/usd

Money Management/ Risk Management: Max stop loss of 10+ spread value, Take profit is always 3,75 times the stop loss value

Scaling in/out: nope

Order types: Pending stop orders (normal conditions), market orders if price is on the supposed value.

Indicators required plus any custom settings:
Pwr Indicator, candle range indicator and a 200 SMA.
Custom Fib with the following levels (1, 2, 3, 4, 5, 0 and -0,25) used to place orders, tp at level 5 sl at level -0,25

Trade conditions:

Well, the idea behind this system is to pick price lows and use small stop losses with a nice risk reward ratio.

Long trades:

PwR must be positive or crossing from negative to positive (I will attach examples with both scenarios).

Trigger candle must be completely above the 200 SMA.

Candle range must not exceed 10 pips.

So, if PwR is positive and the trigger candle is completely above the 200 SMA we wait for a "upward hook" (chart #1), then we place pending orders (buystops) using the custom fib on every candle with a range bellow 10 pips (a 10 pips candle is still valid) if the order don't get triggered in the next candle we cancel it, wait for the current candle to close and place another pending, repeating it until the order enters the market.

Chart#1 explanation:

Trading session starts at 8.00 GMT

PwR makes a "upward hook" (grey dashed line 1) but candle is too big, the next candle is too big also, then we get a valid trigger candle, the order is not triggered, that happens one more time and then on the 3rd candle marked with blue dashed line the order get finally triggered giving us a profit 3,75 times bigger our stop loss.

On the 2nd grey dashed line (2) we have another hook that is valid because we do not have any order on the market (tp from the last order was hit) so this hook counts. The order gets triggered and it resulted on a loss.

On the 3rd grey dashed line we have another signal; a "upward hook", candle is completely above 200 SMA and smaller than 10 pips, we place a new pending buystop, tp hit again.

When PwR crosses the 0 line from negative to positive we use the exact same rules as we take a crossing as a hook.

Important note: notice the 3rd trade on chart#1, after the order was triggered another hook occurred (green dashed line) but sinnce we already have a order in the market we dont use it

Reverse for shorts




Results so far:
I started to backtest since February 2011 (every signal taken) attached excel spreadsheet
And I'm forward testing it sheet #2

I hope the explanation was clear and I hope we can all profit from this.

Regards, 0002097
You do not have the required permissions to view the files attached to this post.
0002097
Posts: 9
Joined: Thu Nov 17, 2011 9:30 pm

Re: PwR EVA

Post by 0002097 »

I forgot the indicators and template...
You do not have the required permissions to view the files attached to this post.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: PwR EVA

Post by gaheitman »

0002097 wrote:Hi guys! Here's a system I've been testing, back and forward. It seams to get nice results and I would like to automate it.
Nice to see you haven't walked away from the PwR indicator, and welcome!

0002097 wrote: Entry Signal style:Indicator based and of course a little bit of common sense
Hmmm, the common sense bit will be tough to code.
0002097 wrote: Long trades:

PwR must be positive or crossing from negative to positive (I will attach examples with both scenarios).

Trigger candle must be completely above the 200 SMA.

Candle range must not exceed 10 pips.

So, if PwR is positive and the trigger candle is completely above the 200 SMA we wait for a "upward hook" (chart #1), then we place pending orders (buystops) using the custom fib on every candle with a range bellow 10 pips (a 10 pips candle is still valid) if the order don't get triggered in the next candle we cancel it, wait for the current candle to close and place another pending, repeating it until the order enters the market.
Unfortunately, we'll need a mathematical way to classify a move as an "upward hook". Something like PwR value moves up 40 pips/points in one bar.

Also, it looked like the hook is allowed to reverse without invalidating the trigger bar. How long is the trigger good for?
0002097 wrote: Results so far:
I started to backtest since February 2011 (every signal taken) attached excel spreadsheet
And I'm forward testing it sheet #2
If you can answer the questions above, I can provide an indicator that will show all the valid entries. I actually had one for your previous system, so it shouldn't be a big deal to update it.
0002097 wrote: I hope the explanation was clear and I hope we can all profit from this.

Regards, 0002097
As do we all! BTW, thanks for using the template!

George
0002097
Posts: 9
Joined: Thu Nov 17, 2011 9:30 pm

Re: PwR EVA

Post by 0002097 »

Hi George!
Well, I know that common sense is "hard" to code, that's why I prefer to trade with my EA's instead of let them trade for me.

I define hook as a upward move of the signal line of the PwR, if it is horizontal or moving down and then goes up we have a hook.

The hook is valid until a pending is triggered, but if PwR reverses to negative we start to look for shorts.

The template was a excellent idea! Thank you for your interest George, regards, João.

If you have anymore questions let me know, I will be glad to answer all of them.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: PwR EVA

Post by gaheitman »

0002097 wrote:Hi George!
Well, I know that common sense is "hard" to code, that's why I prefer to trade with my EA's instead of let them trade for me.

I define hook as a upward move of the signal line of the PwR, if it is horizontal or moving down and then goes up we have a hook.

The hook is valid until a pending is triggered, but if PwR reverses to negative we start to look for shorts.

The template was a excellent idea! Thank you for your interest George, regards, João.

If you have anymore questions let me know, I will be glad to answer all of them.
As I work through the indicator, all the questions we'll have when we build the EA are coming to the surface.

First of all, let's review the terminology:

The Hook: I am defining this with three points of the signal line. A recent point (X), the vertex point (Y) and a distant point (Z). A hook up occurs when X>Y and Y <=Z. For a hook down, it is the opposite, X<Y and Y>=Z. From your last response, we consider the PwR moving from positive to negative as hook down and from negative to positive as a hook up. Is it the main line or the signal line? In this case, a hook could go from being active for a buy (hook up) to active for a sell (hook down) without any trades occurring. Also, the hook expires (there is no hook active) when we close a trade, right?

The Trigger Bar: I believe this is the first bar that occurs while we have a hook active with a range <=10 that is completely above/below the 200SMA. It stops being the trigger bar if we don't enter the trade on the next bar. If we don't, the next bar that meets the <=10 and above/below the 200SMA is the trigger bar as long as we don't change hooks.

OK, now the important part.

Signal Evaluation: Since you have a requirement that a trigger bar be completely above/below the 200SMA, we can only designate a bar as a trigger bar after it is closed. So when the current bar opens we are going to evaluate whether the previous bar is a trigger bar like this (assume we are evaluating along the buy side):
  1. Was the previous bar range <= 10?
  2. Was the low of the previous bar above the 200 SMA at the point of the previous bar?
  3. Do we have an active Hook Up? (assume we are always tracking this)
  4. Is the PwR value from the previous bar > 0
If those are met, we have a valid trigger bar and set our orders. If the current bar opened above the high of the previous bar, we place a market order, otherwise we place a BUY_STOP. Is the SL always 10+spread?

If at the end of the trigger bar we didn't actually trigger the trade, we return to evaluating the list above to see if the previous bar (the new previous bar, our old current bar) still meets all the criteria. We continue to do this with each new bar until we have a trade active, or our hook status changes.

George
mieloo
Trader
Posts: 62
Joined: Wed Nov 16, 2011 9:58 am

Re: PwR EVA

Post by mieloo »

this i like and i'll do my best to help.

but first, why 3.75?

thanks
0002097
Posts: 9
Joined: Thu Nov 17, 2011 9:30 pm

Re: PwR EVA

Post by 0002097 »

Hey Gaheitman, good morning!

The hook

"I am defining this with three points of the signal line. A recent point (X), the vertex point (Y) and a distant point (Z). A hook up occurs when X>Y and Y <=Z. For a hook down, it is the opposite, X<Y and Y>=Z."

You are correct.

"From your last response, we consider the PwR moving from positive to negative as hook down and from negative to positive as a hook up. Is it the main line or the signal line?"

It is the main line.

"In this case, a hook could go from being active for a buy (hook up) to active for a sell (hook down) without any trades occurring"

Exactly.

" Also, the hook expires (there is no hook active) when we close a trade, right?"

Right but when you close a order, if a "hook" occur in that candle (the one that reached tp or sl) that that hook should be valid.

"The Trigger Bar: I believe this is the first bar that occurs while we have a hook active with a range <=10 that is completely above/below the 200SMA. It stops being the trigger bar if we don't enter the trade on the next bar. If we don't, the next bar that meets the <=10 and above/below the 200SMA is the trigger bar as long as we don't change hooks."

Yes.

Signal Evaluation

"If the current bar opened above the high of the previous bar, we place a market order, otherwise we place a BUY_STOP. Is the SL always 10+spread?"

If the current bar opened above the high of the previous bar, we place a market order (only between a certain number of pips or % of range defined by us), otherwise we place a BUY_STOP.

"Is the SL always 10+spread?"

No, sl is defined by the range of the trigger candle, thats why we use the custom fib.
A simple example, candle range is 10 pips, tp would be 40 pips and sl would be 12,5 pips.
Candle range is 1 pip, tp would be 4 pips and sl 1,25 pips. (+ spread)

"If at the end of the trigger bar we didn't actually trigger the trade, we return to evaluating the list above to see if the previous bar (the new previous bar, our old current bar) still meets all the criteria. We continue to do this with each new bar until we have a trade active, or our hook status changes."

Yep.


0002097
0002097
Posts: 9
Joined: Thu Nov 17, 2011 9:30 pm

Re: PwR EVA

Post by 0002097 »

mieloo wrote:this i like and i'll do my best to help.

but first, why 3.75?

thanks
Hi Mieloo, welcome aboard! I tried to develop a system with a nice R:R, started to implement it and noticed that it worked. :)
0002097
Posts: 9
Joined: Thu Nov 17, 2011 9:30 pm

18 Jan 2012 results

Post by 0002097 »

5 wins and 3 losses
You do not have the required permissions to view the files attached to this post.
0002097
Posts: 9
Joined: Thu Nov 17, 2011 9:30 pm

Re: PwR EVA

Post by 0002097 »

Today's results 4 wins and 4 losses! :)
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Ideas for Possible Automation”