Help with Custom Oscillator

Chorlton

Established member
Messages
693
Likes
48
Hi All,


I currently have a custom oscillator, which plot 2 lines on a graph.

Can anyone advise me how I could go about modifying the code, so that the lines can be individually identified in the chart (as at the moment they both appear in the same colour and both share the same name).

Ideally, if they could be plotted in different colours and/or with different individual names that would be very helpful.

I know I can change the colour & style of the lines after they have been plotted but it's difficult to know on certain stocks which line is which !!!! :confused:

The code is:

Pd1:=Input(“Short MA Period”,1,50,3);

Pd2:=Input(“Long MA Period”,5,100,9);

Pd3:=Input(“Oscillator MA Period”,5,100,16);

Osc:=OscP(Pd1,Pd2,E,$);

OMA:=Mov(Osc,PD3,E);

Osc;OMA;



Many Thanks,

Chorlton
 
Chorlton

The best way to do this...and if you don't want to make a very long code then use this code and create a 'template'....change the colours to suit.....and then make an icon on the MS screen....

Every time you want to use this code just click on the 'icon' you have created and you will find that colours will be as you set them....

Please look at the section called 'CHARTS'....'SMART CHARTS'.....'TEMPLATES'...and 'LAYOUT'...sections in MS book...

Once you grasp this then it will be all very simple.....But please please play more and experiment....

regards
 
Top