Some help for a complete EasyLanguage novice - EasyLanguage Programming | futures io social day trading
futures io futures trading


Some help for a complete EasyLanguage novice
Updated: Views / Replies:2,096 / 5
Created: by seaneking Attachments:0

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
 
Thread Tools Search this Thread
 

Some help for a complete EasyLanguage novice

  #1 (permalink)
Just starting out...
Sydney, Australia.
 
Futures Experience: Beginner
Platform: MarketsPlus ProTrader (it's from a small Australian CFD broker)
Favorite Futures: Stocks (via CFDs)
 
Posts: 3 since Mar 2011
Thanks: 0 given, 0 received

Some help for a complete EasyLanguage novice

Ok so I've been (very) recently teaching myself easylanguage in an attempt to make my trading efforts more efficient and I've run into a few hurdles. I'm not coding with tradestation (using a small australian broker with easylanguage compatibility), so can't debug anything properly or ask for official help from tradestation.

I know I'm asking a fair bit, but any help to point me in the right direction would be really appreciated.

1) I originally wanted to have moving average crossovers to trigger my exits, but it seems that unless the code is running in front of me the orders won't execute (even if they are marketorder function macros), is this right? If so, does the trailingstoporder function require the code to be running 24/7 to be a real trailing stop, as the marketorder function does? If not, and this is a long shot, but is there any way to make it more 'dynamic', perhaps using variables for the tailing amount inputs?
Ideally I'd like to have a trailing stop determined by the ATR of the instrument. ie: average(close,20) - (avgtruerange(14) * 3).

2) Is there any way to build a scanner with easylanguage (independent of the TradeStation scanner tool) so it would go through all the instruments in a market and show canditades that have triggered a buy signal in the last 2 days or something?

3) If 1) is correct in that I need to place stop orders the 'old' way with my broker at predetermined profit points when I enter, then is there a way to automate this process through easylanguage using the macro order functions? For instance, if I place an order after a buy signal is triggered, can it automate placing exit orders at points determined by a few simple calculations (with variables)?


Thanks!
Sean

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
Switzerland
 
Futures Experience: Beginner
Platform: MultiCharts, TradeInterceptor
Favorite Futures: Forex
 
Posts: 13 since Mar 2011
Thanks: 0 given, 1 received



seaneking View Post
Ok so I've been (very) recently teaching myself easylanguage in an attempt to make my trading efforts more efficient and I've run into a few hurdles. I'm not coding with tradestation (using a small australian broker with easylanguage compatibility), so can't debug anything properly or ask for official help from tradestation.

I know I'm asking a fair bit, but any help to point me in the right direction would be really appreciated.

1) I originally wanted to have moving average crossovers to trigger my exits, but it seems that unless the code is running in front of me the orders won't execute (even if they are marketorder function macros), is this right? If so, does the trailingstoporder function require the code to be running 24/7 to be a real trailing stop, as the marketorder function does? If not, and this is a long shot, but is there any way to make it more 'dynamic', perhaps using variables for the tailing amount inputs?
Ideally I'd like to have a trailing stop determined by the ATR of the instrument. ie: average(close,20) - (avgtruerange(14) * 3).

2) Is there any way to build a scanner with easylanguage (independent of the TradeStation scanner tool) so it would go through all the instruments in a market and show canditades that have triggered a buy signal in the last 2 days or something?

3) If 1) is correct in that I need to place stop orders the 'old' way with my broker at predetermined profit points when I enter, then is there a way to automate this process through easylanguage using the macro order functions? For instance, if I place an order after a buy signal is triggered, can it automate placing exit orders at points determined by a few simple calculations (with variables)?


Thanks!
Sean

Hi Sean

I'm also only just starting out with EasyLanguage, so take whatever advice with a grain of salt. That said, hopefully this will be of some good, for you or someone else.

1) What do you mean by "unless the code is running in front of me the orders won't execute". What's your current code for the exits? Can you try something like:

********************************************************

If ( average(Close, 50) crosses under Average( Close, 200 ) ) then
Sell ("Close long pos") next bar at market;
BuyToCover("Close short pos") next bar at market;

********************************************************


2) Sorry, don't know if this could be done.

3) Could this help for your exits?

********************************************************

ATR = AvgTrueRange( ATRLength );
MP = MarketPosition;

If ( MP = 1 ) Then
Begin
// Set profit based upon Average True Range
ProfitTarget$ = ATRfactor * ATR * BigPointValue;
SetProfitTarget( ProfitTarget$ );
End;


If ( MP = 1 ) And ( NetProfit > 0 ) Then
Begin
// Set profit based upon percent profit
ProfitTarget$ = ( NetProfit * PrcntGain / 100 );
SetProfitTarget( ProfitTarget$ );
End;

********************************************************

Took these code from another user here on the forum, but didn't note his name. Credit should go to him/her.

Hope that helps
ccfeldt

Reply With Quote
 
  #4 (permalink)
Just starting out...
Sydney, Australia.
 
Futures Experience: Beginner
Platform: MarketsPlus ProTrader (it's from a small Australian CFD broker)
Favorite Futures: Stocks (via CFDs)
 
Posts: 3 since Mar 2011
Thanks: 0 given, 0 received

For the exits, I meant that unless I'm online and connected to my broker I don't think my code can run, and therefore I believe my exits cant trigger. I'll be offline a fair bit since I'm currently traveling. The only thing I don't know is if this still applies with functions like marketorder and trailingstoporder, using the .placeorder macro to directly place orders with your broker....

Oh, and my exit code is rather similar to the example you posted, just using a triple crossover and the marketorder function instead.

Thanks for that ATR exit strategy, it's a good idea to determine if profit has been made to differentiate approaches, so I'll implement that in the code I have so far. Of course, that is unless I have to scrap my exit code and just place stops when I enter due to the above point...


Thanks,
Sean

Reply With Quote
 
  #5 (permalink)
Just starting out...
Sydney, Australia.
 
Futures Experience: Beginner
Platform: MarketsPlus ProTrader (it's from a small Australian CFD broker)
Favorite Futures: Stocks (via CFDs)
 
Posts: 3 since Mar 2011
Thanks: 0 given, 0 received

anyone have any ideas to help point me in the right direction?

Reply With Quote
 
  #6 (permalink)
Just starting out...
Marietta, GA U.S.A
 
Futures Experience: Intermediate
Platform: Multicharts & TradeStation
Favorite Futures: Equity Futures & EC
 
Posts: 9 since Mar 2011
Thanks: 0 given, 4 received

You've got an awkward setup, but you can use setstoploss and setprofittarget and hold your orders on the server (at least if TradeStation is your broker).

The server will only hold the order closest to the current price. For instance, if price is closest to the target, it holds the target. If price is closest to the stoploss, it will hold the stoploss. You will need to adjust your TradeStation setting accordingly.

If you are disconnected from the server, then TradeStation will operate on the latest stop information. You will need to contact TradeStation to do anything other than the last trade transmitted.

Finally, it is not recommended that you leave your strategy unattended or disconnect from the TradeStation server with an automated strategy active. If you can't be at home, you need to look into getting logmein (or some other service) to monitor and manage your trades remotely. Unattended trading is a recipe for disaster.

Reply With Quote

Reply



futures io > > > > > Some help for a complete EasyLanguage novice

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete the sentence... BigDog Psychology and Money Management 11 October 19th, 2011 03:33 AM
global variables: anyone got a complete NT7 example? elbone NinjaTrader Programming 2 July 19th, 2011 10:13 AM
Complete List of Indicator Downloads daveste99 NinjaTrader 2 January 27th, 2011 09:01 AM
spreadsheet novice PandaWarrior Psychology and Money Management 3 December 9th, 2010 09:12 PM
NT7 feature-complete shodson NinjaTrader 8 January 29th, 2010 06:05 AM


All times are GMT -4. The time now is 05:08 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-12-18 in 0.11 seconds with 19 queries on phoenix via your IP 23.22.136.56