Easylanguage help needed, from signal to function - EasyLanguage Programming | futures io social day trading
futures io futures trading


Easylanguage help needed, from signal to function
Updated: Views / Replies:1,493 / 14
Created: by jjsshh 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 100,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
 

Easylanguage help needed, from signal to function

  #11 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,777 since Apr 2013
Thanks: 283 given, 1,061 received

jjsshh,

as far as I know you can't use conditions within a switch/case expression.
This is how I would start, using flags to set the marketposition. These flags will become true when your entry conditions are met. On the next bar the variable MyMarketPosition would receive the status of the position. This will ensure that the value for MyMarketPosition is aligned with the position of your signal (as you are using orders for the next bar).

This should give you a foundation to work on the exit part.

Regards,
ABCTG

 
Code
Variables:
	GoLong			( false ),
	GoShort		( false ),
	EntCondL 		( false ),
	EntCondS 		( false ),
	MyEntryBar		( 0 ),
	MyMarketPosition	( 0 );

//set long market position and store entry barnumber
if GoLong then
begin
	MyMarketPosition = + 1 ;
	GoLong = false ;
	MyEntryBar = CurrentBar ;
end ;

//set short market position and store entry barnumber
if GoShort then
begin
	MyMarketPosition = - 1 ;
	GoShort = false ;
	MyEntryBar = CurrentBar ;
end ;
	
{ Entry orders }
If MyMarketPosition = 0 and EntCondL then 
	GoLong = true ;

If MyMarketPosition = 0 and EntCondS and EntCondL = false then
	GoShort = true ;

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #12 (permalink)
Trading Apprentice
Helsinki, Finland
 
Futures Experience: Intermediate
Platform: Multicharts
Favorite Futures: ES,TY,NQ
 
Posts: 23 since Dec 2013
Thanks: 14 given, 4 received

Ok,

and thanks. The problem may be due to a switch/case. I will try make exits on my own.

Reply With Quote
 
  #13 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,777 since Apr 2013
Thanks: 283 given, 1,061 received


jjsshh,

did you succeed with the exits?

Regards,
ABCTG


jjsshh View Post
Ok,

and thanks. The problem may be due to a switch/case. I will try make exits on my own.


Reply With Quote
 
  #14 (permalink)
Trading Apprentice
Helsinki, Finland
 
Futures Experience: Intermediate
Platform: Multicharts
Favorite Futures: ES,TY,NQ
 
Posts: 23 since Dec 2013
Thanks: 14 given, 4 received

No, i have tried several solutions, but none of them is working. How do you handle the open price which is used in stops? Do you store it in GoLong or Goshort condition?

Reply With Quote
 
  #15 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,777 since Apr 2013
Thanks: 283 given, 1,061 received

jjsshh,

yes, so it's the open of the bar where the marketposition is changed. Which would be the entry bar.

Regards,
ABCTG


jjsshh View Post
No, i have tried several solutions, but none of them is working. How do you handle the open price which is used in stops? Do you store it in GoLong or Goshort condition?


Reply With Quote

Reply



futures io > > > > > Easylanguage help needed, from signal to function

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

September Journal Challenge (sponsored by TopstepTrader)

September

Free Elite Membership: Twitter Tuesday and Facebook Friday!

Tue & Fri
 

Trading with Python: Using Machine Learning w/Ran Aroussi [12:30PM ET]

Elite only

TopstepTrader (TBD)

Sep 25

RandBots (TBD)

Sep 27

Anthony Drager (TBD)

Oct 4
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use if() function to check value returned from cross() function vampirelord AmiBroker 4 March 28th, 2014 12:23 PM
Correlation Function NJAMC The Elite Circle 11 March 11th, 2014 08:56 PM
Easylanguage: Function to Plot Text Verticaly nunoonline EasyLanguage Programming 2 December 22nd, 2010 05:17 AM
NinjaScript equivalent of EasyLanguage's volatility function? zwentz NinjaTrader Programming 3 May 29th, 2010 01:39 AM


All times are GMT -4. The time now is 04:35 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 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 2018-09-18 in 0.11 seconds with 14 queries on phoenix