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,274 / 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 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
 

Easylanguage help needed, from signal to function

  #1 (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

Easylanguage help needed, from signal to function

Hi,

i'm having hard time by trying to change ela signals reserved words to a form which can be used inside a function. For example how to change barssinceentry or a beginprice to a form that can be used in a function. The mission is to plot the signal with indicator by using a function form of signal. For example, if long then indicator is 1.. Thanks in advance!


Last edited by jjsshh; July 30th, 2014 at 11:24 AM. Reason: Stupid post
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
Chicago Illinois USA
 
Futures Experience: Advanced
Platform: Ninja Trader
Broker/Data: IB
Favorite Futures: duh hammer!
 
wldman's Avatar
 
Posts: 2,070 since Aug 2011
Thanks: 967 given, 2,626 received

Hey man...


there is a thread for that. I s something like "Want your easylanguage...for free". You should try there instead of making a new thred that is personal to just you. LOTS of VERY keen advice available in that thread.

Reply With Quote
The following 2 users say Thank You to wldman for this post:
 
  #4 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,529 since Apr 2013
Thanks: 230 given, 854 received
Forum Reputation: Legendary

jjsshh,

what are you trying to accomplish with that function? Your code uses several reserved words that are only available in signals. On top of that orders can't be send from functions. For any one to be able to help you need to elaborate more on what the result should be in my opinion.

Regards,
ABCTG

Reply With Quote
The following 2 users say Thank You to ABCTG for this post:
 
  #5 (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

wldman got the point, the first post was stupid and I will change it.

ABCTG I'm trying to plot it via indicator.

Reply With Quote
 
  #6 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,529 since Apr 2013
Thanks: 230 given, 854 received
Forum Reputation: Legendary


jjsshh View Post
ABCTG I'm trying to plot it via indicator.

jjsshh,

what exactly are you trying to plot? It's probably perfectly clear for you what you want, but a second person might
have a hard time understanding what you want when you only provide limited information.

Regards,

ABCTG

Reply With Quote
 
  #7 (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

ABCTG i'm trying to plot the signal with indicator which uses function. For example if signal is long then the indicator is 1 and when out of the markets indicator is 0. And yes, the problem is with those reserved words.

Reply With Quote
 
  #8 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,529 since Apr 2013
Thanks: 230 given, 854 received
Forum Reputation: Legendary

If you could post the code again I will see if I can help you a bit (wrap code tags around it, so it's better to distinguish from the text).
In general you need a variable that keeps track of the changes in the marketposition. You will also need variables keeping tracks of your stops and prices where you'd enter. You can also post the code you already have done so far and I'll try to steer you into the right direction.

Regards,
ABCTG


jjsshh View Post
ABCTG i'm trying to plot the signal with indicator which uses function. For example if signal is long then the indicator is 1 and when out of the markets indicator is 0. And yes, the problem is with those reserved words.


Reply With Quote
 
  #9 (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

Here is the code. as said entcondl and entconds are true/false vars and MMStop, targfr and avetr are inputs.
///////////////////////////////////////////////////////////////


{ Entry orders }
If MarketPosition = 0 and EntCondL then begin
Buy next bar at market;
end;

If MarketPosition = 0 and EntCondS and EntCondL = false then begin
Sell short next bar at market;
end;

{ Exit orders, long trades }
If MarketPosition = 1 then begin
If BarsSinceEntry = 0 then begin
LStop = (1 - MMStopPct/100.0) * EntryPrice;
end;

Sell("ExStop-L") next bar at LStop stop;

TargPrL = EntryPrice + TargFr * AveTR;
Sell("ExTarg-L") next bar at TargPrL limit;
end;

{ Exit orders, short trades }
If MarketPosition = -1 then begin
If BarsSinceEntry = 0 then begin
SStop = (1 + MMStopPct/100.0) * EntryPrice;
end;

Buy to cover("ExStop-S") next bar at SStop stop;

TargPrS = EntryPrice - TargFr * AveTR;
Buy to cover("ExTarg-S") next bar at TargPrS limit;
end;

Reply With Quote
 
  #10 (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


This is what i have tried. It doesn't work at all. Indicatvalue is the name of function and is used via indicator.


///////////////////////////

switch(mpos)
begin

case 0:
if entcondl then begin
Lstop = (1-MMstoppct/100)*Open;
TargPrl = Open*TargFr*AveTR;
mpos=1;
end;


if entcondl=false and entconds then begin

mpos=-1;
SStop = (1 + MMStopPct/100.0) * open;
TargPrS = open - TargFr * AveTR;
end;

end;

case 1:
if close<= Lstop or close>= targprl then mpos=0;

case -1:
if close>=Sstop or close<=targprs then mpos=0;

end;

indicatvalue = mpos;

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)

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
How to use if() function to check value returned from cross() function vampirelord AmiBroker 4 March 28th, 2014 01:23 PM
Correlation Function NJAMC The Elite Circle 11 March 11th, 2014 09:56 PM
Easylanguage: Function to Plot Text Verticaly nunoonline EasyLanguage Programming 2 December 22nd, 2010 06:17 AM
NinjaScript equivalent of EasyLanguage's volatility function? zwentz NinjaTrader Programming 3 May 29th, 2010 02:39 AM


All times are GMT -4. The time now is 08:45 PM.

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-13 in 0.13 seconds with 19 queries on phoenix via your IP 54.160.245.121