NexusFi: Find Your Edge


Home Menu

 





In need of Easy language code for a TradeStation newbie


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,968 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
Courtneyram
KISSIMMEE
 
Posts: 2 since Sep 2019
Thanks Given: 1
Thanks Received: 0

Hello,
I need help with creating a easy language code for TradeStation. I would like to enter a trade when the price is above the 50 and 100 moving averages and the Macd is above the zero line. I would like to sell when price is below the 50 and 100 moving averages and the Macd is below the zero line. I have been trying to find similar codes so that I can piece it together with no luck I would appreciate any help with this.
Sincerely,
Court


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
EA
Platforms and Indicators
I developed a free AI-powered (Kronos) forecasting indic …
The Elite Circle
My Rant with AMP Futures
Trading Reviews and Vendors
No book, only a stair: journaling fills where price move …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Would you consider buying or leasing an algo?
6 thanks
Trading Journal (Neural Network Production Pipeline Mode …
4 thanks
Trading psychology articles
4 thanks
Big Mike in Ecuador
3 thanks
The Scalpers Journey
2 thanks
  #3 (permalink)
 
numberjuani's Avatar
 numberjuani 
Agoura Hills, CA USA
 
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102


Inputs:
MA1L(50),
MA2L(100);
Variables:
MovAvg1(0),
MovAvg2(0),
MyMACD(0);

MovAvg1 = Average(C, MA1L);
MovAvg2 = Average(C, MA2L);
MyMACD = MACD(C,12,26);

If C > MovAvg1 and C > MovAvg2 and MyMACD > 0 then Buy next bar market;

If C < MovAvg1 and C < MovAvg2 and MyMACD < 0 then sellshort next bar market;


Reply With Quote
Thanked by:
  #4 (permalink)
Courtneyram
KISSIMMEE
 
Posts: 2 since Sep 2019
Thanks Given: 1
Thanks Received: 0

Thank you numberjuani for taking the time to help me out with this. I really appreciate it!


Reply With Quote
  #5 (permalink)
 
numberjuani's Avatar
 numberjuani 
Agoura Hills, CA USA
 
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102


Courtneyram View Post
Thank you numberjuani for taking the time to help me out with this. I really appreciate it!

No problem let me know if you need help with anything else


Reply With Quote




Last Updated on September 20, 2019


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts