Reply

HeikenAshi mini system. Help request

4 replies

JC Savard

Subscriber, bbp_participant, community, 28 replies.

Visit profile

9 years ago #112203

Hi,

Can someone help here.

 

I would like the system to open a trade when

Condition one : 85% or more of the body of the HeikenAshi candle (between the open and the close) have is above/below the 200 ema 

Condition two : enter a trade when the High (or the low) of that candle is broken by the price action of the next bar 

 

Thanks

 

JC

0

JC Savard

Subscriber, bbp_participant, community, 28 replies.

Visit profile

9 years ago #125118

How to program a price ratio (condition one).  Can somebody help?  Mark?

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #125177

Hello,

 

I’m attaching a sample strategy.

 

It can be done with the help of some variables and few computations.

First you compute what is the size of HA candle (HA high- HA low) and store it to variable HA_body_size.

You can also compute what is the size of HA currently below EMA (EMA – HA low) and put it to variable HA_size_below_EMA.

 

Then in the next rule compare if HA_size_below_EMA > 0.85 * HA_body_size – this means that HA has at least 85% of its body below EMA.

 

I tried to add also example of condition two rule – when HA high of previous candle is broken by the current one.

 

 

Mark
StrategyQuant architect

0

JC Savard

Subscriber, bbp_participant, community, 28 replies.

Visit profile

9 years ago #125189

see next post.  Sorry

0

JC Savard

Subscriber, bbp_participant, community, 28 replies.

Visit profile

9 years ago #125190

thank you!

PS.  I don’t think you have any example like that type in the software…. where we can see a rule with assign variables tabs…

If you can build one with a bit of complexity, it could be great for newbies learning like me… and many others I think

CIao

JC

0

Viewing 4 replies - 1 through 4 (of 4 total)