I just ran my code against my new Norgate database in AB. It only brought up 1 buy instead of the 6 it should have. Any ideas? I changed my ticker for index to $XAO.au as this is the new convention, but I'm not sure what else I may be missing.
Ideas?
@Skate
What maintenance do I need to do each day/week?
Run the maintenance script (Tools > XXX-PremiumData) to pick up any code changes, name changes, new listings and delistings as well as changes to the index constituents and watchlists.
As the majority of the database maintenance is done over the weekend, we recommend that the maintenance script is run every Monday (as a minimum).
//Debug interpretation code
printf ("Filters:");
printf (StrFormat("\nXAO Index Constituent? = %g", NorgateIndexConstituentTimeSeries("$XAO") AND NOT OnLastTwoBarsOfDelistedSecurity));
printf (StrFormat("\nPriceRangeFilter = %g", priceRangeFilter ));
printf (StrFormat("\nVolumeFilter = %g", volumeFilter ));
printf (StrFormat("\nIndexFilter = %g", emaFilter ));
printf ("\n\nBuy Conditions:");
printf (StrFormat("\nBuy = %g", Buy) );
printf (StrFormat("\nBuyCond1 = Cross(H,Ref(HHV(H,10),-1)) ) = %g", Cross(H,Ref(HHV(H,10),-1)) ));
printf ("\n\nVariables:");
printf (StrFormat("\nH = %g", H) );
printf (StrFormat("\nHHV(H,10) = %g", HHV(H,10)) );
I also just noticed that my index filter is only on for some of the symbols which also makes no sense.
really wish i knew what was going on.
what about the fill gap optionsIt's hard to help without the code but
- Maybe an issue with the timeframeset for the index healthy - if it is used? If so maybe strip sytem back for simplicity
- Explore dates maybe looking into future - perhaps run code check and profile in AFL formula editor (real long shot here )
View attachment 103392
Sorry I can't really help but maybe a couple of things to check / eliminate.
The All Ords closing above a moving average. (weekly)
The stocks that came up are mostly metals. At the moment I don't have a sector filter (and i'm not sure how to implement one too).
It looks like some of the stocks are looking for a different index symbol to the rest. Are you using something smart in your code to determine the appropriate symbol for the index filer? For example, comparing each symbol against its relevant sector index?
It looks like some of the stocks are looking for a different index symbol to the rest. Are you using something smart in your code to determine the appropriate symbol for the index filer? For example, comparing each symbol against its relevant sector index?
Donewhat about the fill gap options
View attachment 103394
That could maybe affect some code differently?
I have , I think , got to the bottom of my problem
I wished to analyse the data on a weekly basis and had used the Function TimeFrameSet( inWeekly );
I didn't understand that at the end of the first "Exploration Cycle " I had to do the function
TimeFrameRestore ( inDaily);" with the consequence that the exploration continued to look back after each cycle.
@Warr87, you had PPH as a buy for last week. You also have this again for this week?Week 15
Buy: MLX,WAF,RMS,PDN,PPH
Sell: none
5 positions, with 1 more in the market.
Index is up. 6 orders were placed, 5 have already been filled.
MSB remains open. I'm puzzled by this because there are plenty of buys and sellers in the market and yet nothing is being traded. I can't see any trading halts either. This isn't the first time this has happened.
Any ideas?
View attachment 103364
I have changed over to Norgate from Premium data. It was very easy and a seamless change. Looking forward to see how the python plugins work. In the meantime, AB has been setup to use Norgate.
Did similar today, 2 parcels of same size same price, only realised this evening when entering into spreadsheet..just pray for no unexpected collapse of that share before tomorrowSold second position. Thankfully not a loss though with commissions I certainly didn't come out on top.
Holding 2 positions in the same stock throws out my 2% capital rule for risk management.
I blame rushing to run my system and place orders on Friday between my work schedule. Have to be more careful.
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.