NexusFi: Find Your Edge


Home Menu

 





easy language code for moving average - Futures DAX


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
Giox
rome - italy
 
Posts: 12 since Oct 2014
Thanks Given: 0
Thanks Received: 0

Is there someone that can help me to write an easy Language code to go long or short using moving averages ?

if close>average(close,10) buy next bar at market;
if close<average(close,10) sellshort next bar at market;

thank you


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
$500M Riding on World Cup 2026: France/Spain Co-Favored …
Prediction Markets & Event Contracts
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
 
  #2 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,738 since Jul 2012
Thanks Given: 1,918
Thanks Received: 7,487


Giox View Post
Is there someone that can help me to write an easy Language code to go long or short using moving averages ?

if close>average(close,10) buy next bar at market;
if close<average(close,10) sellshort next bar at market;

thank you

What you have should work. What exactly do you need?


Follow me on X Reply With Quote
  #3 (permalink)
Giox
rome - italy
 
Posts: 12 since Oct 2014
Thanks Given: 0
Thanks Received: 0


Hi Kevindog,

What I'm looking to do is to write a code to go long or short ( at limit ) using the cros of moving averages and try this strategy for simulated DAX30 Futures at 10 min. time frame.


Reply With Quote
  #4 (permalink)
Giox
rome - italy
 
Posts: 12 since Oct 2014
Thanks Given: 0
Thanks Received: 0



As you can see in the grapf, my idea is to write a code that can follow the change color of average line (dotted line) going long or short at limit, and set stop loss some ticks away from market entry.

Thank you


Reply With Quote
  #5 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,738 since Jul 2012
Thanks Given: 1,918
Thanks Received: 7,487


Giox View Post
Hi Kevindog,

What I'm looking to do is to write a code to go long or short ( at limit ) using the cros of moving averages and try this strategy for simulated DAX30 Futures at 10 min. time frame.

if close crosses above average(close,10) buy next bar at XXXX limit;
if close crosses below average(close,10) sellshort next bar at XXXX limit;

where XXXX is your limit price you want to enter at.


Follow me on X Reply With Quote




Last Updated on November 15, 2014


© 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