eSignal's EFS2 and TS's EasyLanguage

Discussion in 'Strategy Building' started by richardyu301, Aug 6, 2005.

  1. mmillar

    mmillar

    Yes, TS does the same.
     
    #11     Aug 9, 2005
  2. 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?
     
    #12     Aug 9, 2005
  3. mmillar

    mmillar

    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).
     
    #13     Aug 9, 2005
  4. mmiller, Thanks for info
     
    #14     Aug 9, 2005
  5. 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
     
    #15     Sep 24, 2005
  6. Is this what you mean?

    Depending on conditions one line can have various colors? In this example 4 different ones.
     
    #16     Sep 24, 2005
  7. 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
     
    #17     Sep 24, 2005
  8. another presentation of the same indicator:
     
    #18     Sep 24, 2005
  9. 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
     
    #19     Sep 24, 2005
  10. 9th Gate

    9th Gate

    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.
     
    #20     Sep 24, 2005