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,068 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

In need of Easy language code for a TradeStation newbie

  #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?
Cheap historycal L1 data for stocks
Stocks and ETFs
What broker to use for trading palladium futures
Commodities
Quantum physics & Trading dynamics
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts