Thanks, this what i meant, how you do it? another question, let's say you don't have other timeframes opened in subgraph of single window(I think then you can't write qualifiers "of data x") how you can plot MAs for other TFs in same window? I have no experiance in globalvariables, but can you do this in EL or direct from symbole format window?
Natively in EL, you can't apply indicators from different timescales without having a second symbol at that timeframe applied to the chart (DATA2). You can bring in any information you want from any timeframe with either GlobalVariables (GV) or Collections for EasyLanguage (ELC).
Can someone tell me how to color-code inputs and user-defined variables in power editor? This makes EL coding further easier for reading, I know this can't be altered in color preferances
Is this what you mean? Depending on conditions one line can have various colors? In this example 4 different ones.
the code: Input: Price(Close), Length1(9), Length2(18), Displace(0); If Displace >= 0 OR CurrentBar > AbsValue(Displace) Then Begin Plot1[Displace](AverageFC(Price, Length1), "SimpAvg1"); Plot2[Displace](AverageFC(Price, Length2), "SimpAvg2"); Inputs: BZColor(DarkRed), BBZColor(Red), SZColor(Green), SSZColor(DarkGreen); If Plot1 > Plot2 And Plot1 > Plot1[1] then Begin SetPlotColor(1, SZColor); End Else If Plot1 > Plot2 And Plot1 < Plot1[1] then Begin SetPlotColor(1, SSZColor); End Else If Plot1 < Plot2 And Plot1 < Plot1[1] then Begin SetPlotColor(1, BZColor); End Else If Plot1 < Plot2 And Plot1 > Plot1[1] then Begin SetPlotColor(1, BBZColor); end; end
Spike500 No, it's not what i need. What i mean is, when you open up your studies, strategies in power Editor window to veiw the EL source codes, you can see them color coded as default or user preferance. You can color-code reserved words, functions, skipwords, system or predefined variables, but not inputs and user-defined variables? example: inputs: lenght1(10), lenght2(20); var: buysignal(false); buysignal= if highest(c, lenght1) > highest(c, lenght2) if buysignal then .......; I want word "buysignal" to be blue and words " lenght1, lenght2 " to be green or any other colors as per my choice
Thanks for searching. I wanted to learn how to do this myself. I think View to EasyLanguage PowerEditor Preferences to Syntax Coloring will do what you want.