Announcement

Collapse
No announcement yet.

Need hlep to covert following code.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need hlep to covert following code.

    How can convert following message in esignal from ninjatrader...

    It bassically alerts me when the stock condition is met, it will send out email to me for which symbol trigger at certain time frame base on the chart at closing price at the current time.

    "Long triggered on " + Instrument.MasterInstrument.Name + " in " + Bars.Period.Value + "-" + Bars.Period.Id + " time frame " + " at " + Close[0] + " on " + Time[0], "Long triggered on " + Instrument.MasterInstrument.Name + " in " + Bars.Period.Value + "-" + Bars.Period.Id + " time frame " + " at " + Close[0] + " on " + Time[0]

  • #2
    This is a concatenated string that is probably being emailed to you from another program.

    To the best of my ability, here is the conversion...

    "Long triggered on " + getSymbol() + " in " + (Bars.Period.Value) + "-" + (Bars.Period.Id) + " time frame " + " at " + close(0) + " on " + getHour()+":"+getMinute();

    Bars.Period.Value & Bars.Period.Id are unknown to me (originating from your other application) and I can't convert them without knowing what they reference.

    if you need more help, let me know.
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      (Bars.Period.Value) + "-" + (Bars.Period.Id)

      It is 15-Minutes interval.

      So Bars.Period.Value=15, Bars.Period.Id=Minutes in this example above.

      I just like to know the time frame of chart for the alert.

      Comment

      Working...
      X