EasyLanguage Code

Discussion in 'Trading Software' started by Spectre2007, Oct 11, 2012.

  1. #11     Oct 11, 2012
  2. thanx..

    I saw that archive, tick speedo for tradestation 9.1 is something I think would be valuable as volatility filter. The code doesnt seem to verify.

    I gave away something in the above post that is extremely powerful.
     
    #12     Oct 11, 2012
  3. It may have to do with the Time_s keyword that is for Multicharts

    Time_s
    Returns a numerical value indicating the closing time, including seconds, of the current bar. The time is indicated in the 24-hour HHmmss format, where 130000 = 1:00:00 PM.


    -------------------------------------------

    And TradeStation

    Time (Reserved Word)
    Disclaimer

    This reserved word returns a numeric expression representing the EasyLanguage time (HHMM format) of the closing price of the current bar.

    Remarks
    Time returns the time in 24-hour format.

    Examples
    Time returns 1600 if the Time of the bar is 4:00pm.

    Time returns 0930 if the Time of the bar is 9:30am.

    Additional Example
    For example, you can write your strategy, analysis technique, or function such that it only evaluates the EasyLanguage instructions when the trade time is less than 11:00am:

    If Time < 1100 Then
    { EasyLanguage instruction } ;
     
    #13     Oct 11, 2012
  4. input: cap(15), cap.color(darkgray);

    if BarType = 0 then

    begin if date = date[1] then

    begin value1 = (TimeToMinutes(time)-TimeToMinutes(time [1]));

    if value1 <= cap then plot1(value1, "tick time") else plot2(cap,"Cap", cap.color);

    end;

    end;
     
    #14     Oct 12, 2012
  5. Tick speed indicator too sensitive..

    Will experiment with increasing the 'time - time[1] to larger bar intervals, time[5].
     
    #15     Oct 12, 2012
  6. nice fix, and you corrected the plot error also
    Thanks for posting
     
    #16     Oct 12, 2012
  7. todays sell
     
    #17     Oct 12, 2012
  8. <!-- copy and paste. Modify height and width if desired. --> <a href="http://content.screencast.com/users/Spectre/folders/Default/media/a039eb79-58fa-4435-94f4-d34b04c45f64/speed.png"><img class="embeddedObject" src="http://content.screencast.com/users/Spectre/folders/Default/media/a039eb79-58fa-4435-94f4-d34b04c45f64/speed.png" width="2457" height="1273" border="0" /></a>
     
    #18     Oct 12, 2012
  9. works pretty good with time[5] change. Notice how the speed stalls at low of the day.
     
    #19     Oct 12, 2012
  10. finished trade
     
    #20     Oct 12, 2012