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 !!!!
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
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 !!!!
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