- Joined
- 11 July 2005
- Posts
- 173
- Reactions
- 6
also can have
signal = Cross(C, ema(c,50) )
The use of indices as additional signals can be automated by designating the indexes in the Symbol-categories window. There is order of precedence of Market - Group - Industry. So if Market is filled in in the categories then groups and industries are ignored, unfortunately. I ahve asked TJ at AB to include ability to call up independantly.
The AFL to get the base index is GetbaseIndex()
so to get this in use
SetForeign(GetbaseIndex());
IndexSignal = Cross(C, ema(c,50) );
RestorePriceArrays();
//then you use it with the rest of the AFL
Buy = YourStockConditions and IndexSignal();
One thing to remember, and this can play a large part of problems. If you use unpadded data and your stock ticker has data gaps (untraded days) then it will ignore that particular date in referencing the foreign symbol. There are no workarounds for this unfortunately. So best to use any foreign as simple raher than crosses
SetForeign(GetbaseIndex());
IndexSignal = C > ema(c,50);
RestorePriceArrays();
Buy = YourStockConditions and IndexSignal();
signal = Cross(C, ema(c,50) )
The use of indices as additional signals can be automated by designating the indexes in the Symbol-categories window. There is order of precedence of Market - Group - Industry. So if Market is filled in in the categories then groups and industries are ignored, unfortunately. I ahve asked TJ at AB to include ability to call up independantly.
The AFL to get the base index is GetbaseIndex()
so to get this in use
SetForeign(GetbaseIndex());
IndexSignal = Cross(C, ema(c,50) );
RestorePriceArrays();
//then you use it with the rest of the AFL
Buy = YourStockConditions and IndexSignal();
One thing to remember, and this can play a large part of problems. If you use unpadded data and your stock ticker has data gaps (untraded days) then it will ignore that particular date in referencing the foreign symbol. There are no workarounds for this unfortunately. So best to use any foreign as simple raher than crosses
SetForeign(GetbaseIndex());
IndexSignal = C > ema(c,50);
RestorePriceArrays();
Buy = YourStockConditions and IndexSignal();