Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

bulldogcajun

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by bulldogcajun

  1. I have continued to work on the code. This comes close to what I want it to do. However, it displays two lines: one shows the most recent tick, the other shows the close of the previous bar.
  2. My apologies it this is not the correct forum for this question. If it belongs elsewhere, could you please direct me to the correct forum? I am trying to write the EL code to draw a horizontal line across the screen as each price tick is received. Here is the code I have written. It is not drawing anything. I'd like to erase the previous line & draw a new one for each tick as it is received. Any help would be appreciated. Thanks! _________________________________________ [LegacyColorValue = true]; { xSR_2 support and resistance for non-tick charts } input: line_color(blue), bars_back(600); vars: sr_line(0), date_bb(0), time_bb(0); if (sr_line > 0) then begin tl_delete(sr_line); end; date_bb = date[bars_back]; time_bb = time[bars_back]; sr_line = TL_New(date_bb, time_bb, close, date, time, close); TL_SetColor(sr_line, line_color);
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.