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.
77trader
-
Content Count
6 -
Joined
-
Last visited
-
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
-
Hi Steve,
I trust that my last post didn't take the wind out of your sails.... Your efforts were most appreciated..
I was able to write the 100MA Trend Line for Think Or Swim, which I posted, but can't convert it into AFL code... hence my cry for 'Help!' It works really well as a swing trade indicator.
If you still have any energy left for this project, or any pointers for me, I would really appreciate it.
Best regards,
Ron