Simple Coding Help - No Promise.

john302928

Well-Known Member

john302928

Well-Known Member
I am trying to create Nifty Option Index EOD chart.
I would like to have 5 names for each symbol atleast like say for 8500ce ,it should be OPTIDXNIFTY8500CE-1.OPTIDXNIFTY8500CE-2,OPTIDXNIFTY8500CE-3.OPTIDXNIFTY8500CE-4.OPTIDXNIFTY8500CE-5

Those 1 2 3 4 5 at the end of the symbol defines which month expiry. say 1 means current month expiry always and 2 means second month expiry always and so on.
assume todays date is 24 Jan 2017, the data of 8500CE jan expiry should get added to OPTIDXNIFTY8500CE-1 because current expiry is JAN, and 8500CE of FEb should get added to OPTIDXNIFTY8500CE-2 and so on,and the same for 25 jan 2017 because that it still JAN expiry and 27 Jan 2017 data of 8500CE feb expiry should get added to the same OPTIDXNIFTY8500CE-1 though 27 Jan 2017 data of 8500CE reflects FEb expiry because Jan month contracts expiry on 25 jan itself. and Mar expiry data will get added to OPTIDXNIFTY8500CE-2 and so on.

Hope I conveyed my requirement.
Could anyone help me to get it done in amibroker please. It would be of great help.
 

john302928

Well-Known Member
Can anyone help me with this requirement. Thanks
 
I am trying to create Nifty Option Index EOD chart.
I would like to have 5 names for each symbol atleast like say for 8500ce ,it should be OPTIDXNIFTY8500CE-1.OPTIDXNIFTY8500CE-2,OPTIDXNIFTY8500CE-3.OPTIDXNIFTY8500CE-4.OPTIDXNIFTY8500CE-5

Those 1 2 3 4 5 at the end of the symbol defines which month expiry. say 1 means current month expiry always and 2 means second month expiry always and so on.
assume todays date is 24 Jan 2017, the data of 8500CE jan expiry should get added to OPTIDXNIFTY8500CE-1 because current expiry is JAN, and 8500CE of FEb should get added to OPTIDXNIFTY8500CE-2 and so on,and the same for 25 jan 2017 because that it still JAN expiry and 27 Jan 2017 data of 8500CE feb expiry should get added to the same OPTIDXNIFTY8500CE-1 though 27 Jan 2017 data of 8500CE reflects FEb expiry because Jan month contracts expiry on 25 jan itself. and Mar expiry data will get added to OPTIDXNIFTY8500CE-2 and so on.

Hope I conveyed my requirement.
Could anyone help me to get it done in amibroker please. It would be of great help.
If you want to do that for EoD analysis for back tests

then compile the data in 5 text files and import into Amibroker


Happy :)
 

john302928

Well-Known Member
compiling process need to be automated. that is the issue and that is the help i want here
 

Similar threads