Help with EasyLanguage - EasyLanguage Programming | futures io social day trading
futures io futures trading


Help with EasyLanguage
Updated: Views / Replies:510 / 12
Created: by yofrankie1 Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 2  
 
Thread Tools Search this Thread
 

Help with EasyLanguage

  #1 (permalink)
Trading Apprentice
KS/Olathe
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: Crude CL
 
Posts: 6 since Jan 2017
Thanks: 0 given, 0 received

Help with EasyLanguage

Hey,

I need some help with EasyLanguage. I am designing a system that will go LONG on a pullback when the CURRENT price crosses the 10 day EMA. My question is this: I can not find a function for CURRENT PRICE. I know about current bid and ask, but is there anyway I put current price instead of the bid and ask? For example: $AMZN is up 30 points in premarket. I wait for a pullback and go long only when the CURRENT price crosses the 10 day EMA on the 30minute chart. How do I code current price into the system? I hope this question made sense.

Thanks in advance!
Frankie.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
San Diego, California
 
Futures Experience: Advanced
Platform: MultiCharts
Favorite Futures: ES, NQ
 
Posts: 26 since Mar 2016
Thanks: 0 given, 22 received


Use "close" or "c" for short. That will be the current closing price of your thirty-minute bar. If you use intrabar order generation, it will be the latest tick price, though intrabar order generation may cause many more trades.

Further, you may want to use "c crosses above ema" for your trigger and not "c>ema", as "c crosses above ema" is an event while "c>ema" is a state.

Reply With Quote
The following user says Thank You to chik for this post:
 
  #4 (permalink)
Trading Apprentice
KS/Olathe
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: Crude CL
 
Posts: 6 since Jan 2017
Thanks: 0 given, 0 received

Hey Chic,

But 'close' wont trigger a buy until the bar closes right? How do I trigger a buy as soon as the price hits the EMA?

Thank you for your reply!
Frankie.

Reply With Quote
 
  #5 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,455 since Apr 2013
Thanks: 222 given, 830 received

Frankie,

that depends on your code. When you don't use intrabar order generation you can only issue orders end of the bar.

With intrabar order generation you can trigger orders as soon as your conditions are met (using Close you can access the current last price then).

Regards,

ABCTG

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
KS/Olathe
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: Crude CL
 
Posts: 6 since Jan 2017
Thanks: 0 given, 0 received

AAAAAAA thats exactly what I needed:

IntrabarOrderGeneration = TRUE;

Thank you for your help! Cha ching problem solved

Reply With Quote
 
  #7 (permalink)
Elite Member
San Diego, California
 
Futures Experience: Advanced
Platform: MultiCharts
Favorite Futures: ES, NQ
 
Posts: 26 since Mar 2016
Thanks: 0 given, 22 received

You can also have a resting stop on the EMA: "buy next bar at EMA stop"

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
KS/Olathe
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: Crude CL
 
Posts: 6 since Jan 2017
Thanks: 0 given, 0 received

Hey guys,

Take a look at the code below:

inputs: EMAType (10), //Which EMA to use

StopLoss (500),
ProfitTaking (1500);

variables: EMA_Trigger (0),
BullCross (false);


//Main Program

EMA_Trigger = XAverage(Close, EMAType); //EMA
BullCross = CurrentBid crosses under EMA_Trigger;

If (BullCross) then
begin

[IntrabarOrderGeneration = True]
Buy 1000 shares this bar at Close;

end;

SetStopPosition;
SetStopLoss(StopLoss);
SetStopPosition;
SetProfitTarget(ProfitTaking);

I have attached a
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Why is the buy order not getting executed at Point A in the screenshot? The point when the current price hits the EMA? Isn't that the point of IntrabarOrderGeneration function?

Please keep in mind I am a non programmer

Thank you,
Frankie!

Reply With Quote
 
  #9 (permalink)
Elite Member
San Diego, California
 
Futures Experience: Advanced
Platform: MultiCharts
Favorite Futures: ES, NQ
 
Posts: 26 since Mar 2016
Thanks: 0 given, 22 received

Enable [IntrabarOrderGeneration = True] at the top of the script, above your inputs, not after (BullCross) turns true.

Reply With Quote
 
  #10 (permalink)
Trading Apprentice
KS/Olathe
 
Futures Experience: Intermediate
Platform: TradeStation
Favorite Futures: Crude CL
 
Posts: 6 since Jan 2017
Thanks: 0 given, 0 received


Still the buy order is getting executed at the same place...

Reply With Quote

Reply



futures io > > > > > Help with EasyLanguage

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

FuturesTrader71: TBA

Elite only

Al Brooks: TBA

Elite only

Jigsaw Trading: TBA

Oct 19

RandBots: TBA

Oct 24
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easylanguage help Hodon TradeStation 1 January 14th, 2016 11:25 AM
EasyLanguage HELP!! (please) :) andrewfx EasyLanguage Programming 3 July 15th, 2014 03:37 AM
EasyLanguage vs NinjaScript Traderji Platforms and Indicators 2 October 22nd, 2010 01:00 AM
Easylanguage vs. C++ Cogito ergo sum EasyLanguage Programming 10 August 2nd, 2010 02:12 PM


All times are GMT -4. The time now is 01:13 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-09-24 in 0.12 seconds with 20 queries on phoenix via your IP 54.198.52.8