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,712 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?
Expiration Day: Wall Street Rallies on Peace Hopes While …
Prediction Markets & Event Contracts
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
World Cup Opens: USA at 45.5% Tonight as Markets Push Ba …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
197 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 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