NexusFi: Find Your Edge


Home Menu

 





easy language code for moving average - Futures DAX


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,660 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?
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Friday Update: Markets Now Pricing Fed Rate HIKES as Sta …
Traders Hideout
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
S&P 500 Holds the Line: No Fast Track for SpaceX, Op …
Stocks and ETFs
 
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
Volume Indicators
8 thanks
BERN ALGOS algo trading journal
8 thanks
  #2 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,737 since Jul 2012
Thanks Given: 1,917
Thanks Received: 7,476


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,737 since Jul 2012
Thanks Given: 1,917
Thanks Received: 7,476


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