[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] need your(s) help with this scan / explore afl-kindly check what's wrong?



PureBytes Links

Trading Reference Links

Hi 

I'm using this scan/explore afl on 5mt. data at the same time in
explore option i have mentioned hrly/daily/weekly trend in colors.
Exactly this is not my own afl. I have an idea - so I have copied
syntax(es) from various afl(s) to create this one. 

I'm getting results using this afl. 

Is this need any modifications?

And another thing is i wish to display the macd values for various
timeframes i.e., hourly/daily/weekly. How to get that values into this
afl explore option. 

If this needs any modifications kindly tell me what to do?

Thank you...

Ajay


Buy = Cross (MACD(), Signal());

Sell = Cross(Signal(),MACD());

Filter = Buy OR Sell;



//AddColumn(Buy, "Buy", 1, colorGreen);//
//AddColumn(Sell, "sell", 1, colorRed);//

AddColumn(C, "close", 1.2);
AddColumn( 32, "buy", formatChar, colorDefault,
           IIf(Filter && Buy,colorGreen,colorDefault)  );
AddColumn( 32, "sell", formatChar, colorDefault,
           IIf(Filter && Sell,colorRed,colorDefault)  );


TimeFrameSet(inHourly);
MACDb = (MACD())>Signal();
MACDs = (MACD())<Signal();
TimeFrameRestore();

Macdb = TimeFrameExpand(MACDb,inHourly);

MACDs = TimeFrameExpand(MACDs,inHourly);

Filter1 = MACDb OR MACDs;

AddColumn( 32, "Hrly", formatChar, colorDefault,
           IIf(Filter && macdb,colorGreen,colorDefault)  );

AddColumn( 32, "Hrly", formatChar, colorDefault,
           IIf(Filter && macds,colorRed,colorDefault)  );



TimeFrameSet(inDaily);
MACDb = (MACD())>Signal();
MACDs = (MACD())<Signal();
TimeFrameRestore();

Macdb = TimeFrameExpand(MACDb,inDaily);

MACDs = TimeFrameExpand(MACDs,inDaily);

Filter1 = MACDb OR MACDs;

AddColumn( 32, "Daily", formatChar, colorDefault,
           IIf(Filter && macdb,colorGreen,colorDefault)  );

AddColumn( 32, "Daily", formatChar, colorDefault,
           IIf(Filter && macds,colorRed,colorDefault)  );

TimeFrameSet(inWeekly);
MACDb = (MACD())>Signal();
MACDs = (MACD())<Signal();
TimeFrameRestore();

Macdb = TimeFrameExpand(MACDb,inWeekly);

MACDs = TimeFrameExpand(MACDs,inWeekly);

Filter1 = MACDb OR MACDs;

AddColumn( 32, "Wkly", formatChar, colorDefault,
           IIf(Filter && macdb,colorGreen,colorDefault)  );

AddColumn( 32, "Wkly", formatChar, colorDefault,
           IIf(Filter && macds,colorRed,colorDefault)  );
AlertIf( Buy, "", "launching ext application", 3);

===
end
===



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/