NexusFi: Find Your Edge


Home Menu

 





easy language code for moving average - Futures DAX


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,052 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?
Feb & Mar24 New Ag Micros & New Solana Crypto Fu …
Traders Hideout
Multiple Timeframes in One Chart/Strategy
MultiCharts
Ticksandtrades.com
Trading Reviews and Vendors
Sierra chart Trading system
Sierra Chart
Assigning value to swing high and low points: 2, 1, -1, -2
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Machine Learning Journal
41 thanks
Is the WH trying to engineer a recession? This Wall Stre …
15 thanks
Demark Indicator
3 thanks
OpenAIs Deep Research - finance/trading related prompts
3 thanks
Daytrading ES & NQ
3 thanks
  #2 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,717 since Jul 2012
Thanks Given: 1,911
Thanks Received: 7,431


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,717 since Jul 2012
Thanks Given: 1,911
Thanks Received: 7,431


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


© 2025 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