NexusFi: Find Your Edge


Home Menu

 





sample forex futures code - Easylanguage


Discussion in EasyLanguage Programming

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




 
Search this Thread

sample forex futures code - Easylanguage

  #1 (permalink)
 highjohn 
Durham, North Carolina
 
Experience: Beginner
Platform: TS
Trading: Futures
Posts: 26 since Mar 2022
Thanks Given: 24
Thanks Received: 2

Hello,

Can someone share a sample code for Forex -futures strategy that includes stop loss/take profit?

This code is not working for forex futures; works for m2k though.

buy next bar 2 contracts at open;

Tried googling but no luck.
Thanks!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
use extra computer for optimisation
NinjaTrader
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #2 (permalink)
Doob
Seattle,Washington,USA
 
Posts: 14 since Nov 2011
Thanks Given: 0
Thanks Received: 13


highjohn View Post
Hello,

Can someone share a sample code for Forex -futures strategy that includes stop loss/take profit?

This code is not working for forex futures; works for m2k though.

buy next bar 2 contracts at open;

Tried googling but no luck.
Thanks!


Just change it a little - you have:

"buy next bar 2 contracts at open;"

Just need to switch it around a little.

Try the following:

buy("buy") 2 contracts next bar at open;

I used Tradestation many years ago - at the time - way too many problems with EasyLanguage and their Support - was poor. I switched over to MultiCharts - PowerLanguage - which was basically the same as EasyLanguage. MultiCharts has 2 versions - MultiCharts PowerLanguage and MultiCharts.NET C#.

Hope that works for you.

Reply With Quote
Thanked by:
  #3 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360



Doob View Post
Just change it a little - you have:

"buy next bar 2 contracts at open;"

Just need to switch it around a little.

Try the following:

buy("buy") 2 contracts next bar at open;

I used Tradestation many years ago - at the time - way too many problems with EasyLanguage and their Support - was poor. I switched over to MultiCharts - PowerLanguage - which was basically the same as EasyLanguage. MultiCharts has 2 versions - MultiCharts PowerLanguage and MultiCharts.NET C#.

Hope that works for you.


And you might have to enter number of contracts as forex lots - like 100000 contracts for 1 standard Forex lot.

Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 highjohn 
Durham, North Carolina
 
Experience: Beginner
Platform: TS
Trading: Futures
Posts: 26 since Mar 2022
Thanks Given: 24
Thanks Received: 2

It didnt work....Will keep trying.

Started this thread Reply With Quote
  #5 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


highjohn View Post
It didnt work....Will keep trying.

Can you be a little more specific?

For example, post the code (take out anything proprietary) and then paste any error messages, etc.

Follow me on Twitter Reply With Quote




Last Updated on March 14, 2022


© 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