NexusFi: Find Your Edge


Home Menu

 





easy language code for moving average - Futures DAX


Discussion in EasyLanguage Programming

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




 
Search this Thread

easy language code for moving average - Futures DAX

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Cheap historycal L1 data for stocks
Stocks and ETFs
Strategy stop orders partially filled
EasyLanguage Programming
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
23 thanks
ApexTraderFunding.com experience and review
13 thanks
Trading with Intuition
12 thanks
GFIs1 1 DAX trade per day journal
9 thanks
EG Indicators
8 thanks
  #2 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


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 Twitter 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,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


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 Twitter Reply With Quote




Last Updated on November 15, 2014


© 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