Home › Forums › Trading System Mentor Course Community › AmiBroker and Data Setup › PDU > NDU ISSUES
- This topic is empty.
-
AuthorPosts
-
February 21, 2017 at 9:11 pm #106280CAIHuangMember
So you pretty much used the following (new additions highlighted in bold):
oc = NorgateOriginalCloseTimeSeries();
PF = oc;
PriceTog = ParamToggle(“Price Filter”,”Off|On”,1);
PF = ParamField(“Price Field”,6);
MinSP = Param(“Minimum Share Price – $”,10,0.00,1000,0.01);
MaxSP = Param(“Maximum Share Price – $”,100,0.00,2000,0.01);
MinMaxSP = PF >= MinSP AND PF <= MaxSP;
PriceFilt = IIf(PriceTog,MinMaxSP,1);Instead of the LMS addition in module 11/27:
PriceTog = ParamToggle(“Price Filter”,”Off/On”,1);
CloseToggle = ParamToggle(“Close Price”, “Adjusted|Unadjusted”,0);
CP = IIf(CloseToggle,NorgateOriginalCloseTimeSeries(),Close);
MinSP = Param(“Minimum Share Price – $”,10,0.00,1000,0.01);
MaxSP = Param(“Maximum Share Price – $”,100,0.00,2000,0.01);
MInMaxSP = CP >= MinSP AND CP <= MaxSP;
PriceFilt = IIf(PriceTog,MinMaxSP,1);Is there any difference between the two or does the:
oc = NorgateOriginalCloseTimeSeries();
PF = oc;
account for all changes to the PF?Also where does one find out about the volume and turnover changes? I haven’t seen any in the LMS?
Cheers
February 22, 2017 at 12:21 am #106303Stephen JamesMemberLuke
The second piece of code from the LMS lets you switch between adjusted and unadjusted close. The first does not and it also uses PF twice – the second use normally overrides the first.
I have posted some filters with volume/turnover here:-
Changes will be made to the LMS content shortly.
February 22, 2017 at 11:27 am #106304SaidBitarMemberLuke Aram wrote:So you pretty much used the following (new additions highlighted in bold):oc = NorgateOriginalCloseTimeSeries();
PF = oc;
PriceTog = ParamToggle(“Price Filter”,”Off|On”,1);
PF = ParamField(“Price Field”,6);
MinSP = Param(“Minimum Share Price – $”,10,0.00,1000,0.01);
MaxSP = Param(“Maximum Share Price – $”,100,0.00,2000,0.01);
MinMaxSP = PF >= MinSP AND PF <= MaxSP;
PriceFilt = IIf(PriceTog,MinMaxSP,1);Instead of the LMS addition in module 11/27:
PriceTog = ParamToggle(“Price Filter”,”Off/On”,1);
CloseToggle = ParamToggle(“Close Price”, “Adjusted|Unadjusted”,0);
CP = IIf(CloseToggle,NorgateOriginalCloseTimeSeries(),Close);
MinSP = Param(“Minimum Share Price – $”,10,0.00,1000,0.01);
MaxSP = Param(“Maximum Share Price – $”,100,0.00,2000,0.01);
MInMaxSP = CP >= MinSP AND CP <= MaxSP;
PriceFilt = IIf(PriceTog,MinMaxSP,1);Is there any difference between the two or does the:
oc = NorgateOriginalCloseTimeSeries();
PF = oc;
account for all changes to the PF?Also where does one find out about the volume and turnover changes? I haven’t seen any in the LMS?
Cheers
I changed last night to the code that Craig posted due to the fact that I like to pick what i want and not to hard code it
the only difference i made from the LMS that in the Backtest afl i selected Unadjusted by default and for the exploration file and the DDE i selected the adjusted
February 23, 2017 at 4:45 am #106312ScottMcNabParticipantWonder which one ATR references ?
February 23, 2017 at 6:27 am #106313Stephen JamesMemberScott
Any AB indicators are going to reference the adjusted close unless you code it otherwise, but using the unadjusted close would distort the indicator.February 23, 2017 at 7:07 am #106314LeeDanelloParticipantyep, You only need to reference the unadjusted close if you have a price filter that you wish to have your stocks chosen from ie between $1 to $10, otherwise don’t worry about it.
March 16, 2017 at 3:53 am #106315TrentRothallParticipantIf anyone’s AB stops displaying data be sure to follow the links in the “known issues” section of the NDU display.
Easily fixed
March 16, 2017 at 9:11 am #106392AnonymousInactiveThanks Trent, that potentially saved me a few hours of trying to figure what happened to my data
March 16, 2017 at 8:43 pm #106393Nick RadgeKeymasteraha! That’s what happened to me yesterday.
March 16, 2017 at 11:10 pm #106395LEONARDZIRParticipantTrent,
My thanks as well.
Fix worked fine
Len -
AuthorPosts
- You must be logged in to reply to this topic.