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.

steveh2009

Members
  • Content Count

    41
  • Joined

  • Last visited

Status Updates posted by steveh2009

  1. Ron,

     

    This is the code for your 1st part where you have lines and dots and bars instead of candles. It is the translation of your posted ThinkOrSwim code to AFL.

     

    MA100 = MA(Close, 100);

    Ref0 = Ref(MA100, 0);

    Ref1 = Ref(MA100, -1);

     

    Plot(Close, "", colorBlack, styleBar);

    Plot(MA100, "", IIf(Ref0 > Ref1, colorGreen, IIf(Ref0 < Ref1, colorRed, colorBlack)), styleLine | styleDots | styleThick);

     

    Show me the ThinkOrSwim code for your 2nd and I'll try to translate it.

     

    Steve

×
×
  • Create New...

Important Information

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