Australian (ASX) Stock Market Forum

Amibroker code for specific breakout strategy

Joined
14 December 2010
Posts
3,472
Reactions
248
Hello friends,

Most of you wouldn't remember me. I was quite an active poster on here 7-10 years ago before I burnout and had to give up trading.

I am looking to resume again with a short term breakout strategy.

I have lost all my coding that I previously had.

Starting fresh again is frustrating so I'm hoping someone might be able to help me.

I am looking for a basic code for Amibroker to identify the following.
Companies which:

Code 1: Have reached a 60 day PRICE high in the past 7 days.

Code 2: Have reached a 60 day VOLUME high in past 7 days.

Can anyone help me with this coding?

Thanks,
Matt
 
Hello friends,

Most of you wouldn't remember me. I was quite an active poster on here 7-10 years ago before I burnout and had to give up trading.

I am looking to resume again with a short term breakout strategy.

I have lost all my coding that I previously had.

Starting fresh again is frustrating so I'm hoping someone might be able to help me.

I am looking for a basic code for Amibroker to identify the following.
Companies which:

Code 1: Have reached a 60 day PRICE high in the past 7 days.

Code 2: Have reached a 60 day VOLUME high in past 7 days.

Can anyone help me with this coding?

Thanks,
Matt
Welcome back, Matt!

One can only get better and stronger by not giving up but just recharging the battery.

I am not a good AFL programmer. But I think the following code should work.

Price_break = hhv(c, 7) >= hhv(c, 60);
Vol_break = hhv(v, 7) >= hhv(v, 60);
 
Welcome back, Matt!

One can only get better and stronger by not giving up but just recharging the battery.

I am not a good AFL programmer. But I think the following code should work.

Price_break = hhv(c, 7) >= hhv(c, 60);
Vol_break = hhv(v, 7) >= hhv(v, 60);
Thank you so much. I will write down that code so that when I’m ready I can give it a try.

With the health issues that I’ve gone through I will have to stay away from futures trading unfortunately, even though that is rather lucrative.

I am investing long-term and also will be doing short-term momentum trading. I’m excited about that.
 
Holy! I don't know how many old threads between you and @tech/a I have read over the years Pav - probably close to all of them.

I thought this was going to be another old thread too. Guess not. ? Welcome back!
 
Hello friends,

Most of you wouldn't remember me. I was quite an active poster on here 7-10 years ago before I burnout and had to give up trading.

I am looking to resume again with a short term breakout strategy.

I have lost all my coding that I previously had.

Starting fresh again is frustrating so I'm hoping someone might be able to help me.

I am looking for a basic code for Amibroker to identify the following.
Companies which:

Code 1: Have reached a 60 day PRICE high in the past 7 days.

Code 2: Have reached a 60 day VOLUME high in past 7 days.

Can anyone help me with this coding?

Thanks,
Matt
Welcome back,
Hope all is good now with health.
Read so many of your posts in the last years?
 
Holy! I don't know how many old threads between you and @tech/a I have read over the years Pav - probably close to all of them.

I thought this was going to be another old thread too. Guess not. ? Welcome back!
Wow amazing to hear that. Glad it’s helped all these years later!
 
Welcome back, Matt!

One can only get better and stronger by not giving up but just recharging the battery.

I am not a good AFL programmer. But I think the following code should work.

Price_break = hhv(c, 7) >= hhv(c, 60);
Vol_break = hhv(v, 7) >= hhv(v, 60);
Another’s question mate. Sorry to ask one so basic, but I’ve completely forgotten everything about code!

Could you write out the one for the lows for those periods too?

I’ll have to get my head back into this as I move forward!!!
 
Also, is there a thread, or does anyone know how to import Premium data into Amibroker?

It feels strange starting from scratch all over again.
 
Another’s question mate. Sorry to ask one so basic, but I’ve completely forgotten everything about code!

Could you write out the one for the lows for those periods too?

I’ll have to get my head back into this as I move forward!!!

If I have understood your request then try LLV(L,2)!

Cheers, Rob
 
Top