READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

HeikenAshi mini system. Help request

14 replies

JC Savard

Subscriber, bbp_participant, community, 28 replies.

Visit profile

12 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

12 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

12 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

12 years ago #125189

see next post.  Sorry

0

JC Savard

Subscriber, bbp_participant, community, 28 replies.

Visit profile

12 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

CryptoBiome

Subscriber, bbp_participant, customer, community, sq-ultimate, 2 replies.

Visit profile

1 year ago #288722

Could you please reup HeikenAshiSample.sqw? The page is no longer available. Thanks

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #288758

Some older forum attachments are no longer available.

Here are some others from archive.

It can be only open using EA Wizard. Some sqw file can be loaded using SQX but there is no full compatibility

Attachments:
You must be logged in to view attached files.

0

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