Setting StopLoss in Easy Language via Variable1-99 (calculated live) - MultiCharts | futures io social day trading
futures io futures trading


Setting StopLoss in Easy Language via Variable1-99 (calculated live)
Updated: Views / Replies:8,064 / 14
Created: by buggyboy 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
 

Setting StopLoss in Easy Language via Variable1-99 (calculated live)

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

jamesfisher,

you can use the Marketposition reserved word to check that the first entry is only taken when flat or short and the second one only when you are long already.
From what you describe this should fix the issue.

Regards,

ABCTG

Reply With Quote
 
  #12 (permalink)
Trading Apprentice
City Poland
 
Futures Experience: Advanced
Platform: MT4,AmiBroker,MultiCharts
Favorite Futures: FX, futures, options, commodities, stocks
 
Posts: 14 since Sep 2012
Thanks: 1 given, 1 received

That's true. But the idea is to enter the market only in long direction. E.g. the baseline is that we are flat at the beginning so Marketposition = 0;

The condition to enter market is met so we:
Buy("LEx1") MyContracts contracts Next Bar at maxSetup stop;

Now we have Marketposition = 1.
Market is moving on and again condition is met so we:
Buy("LEx2") MyContracts contracts Next Bar at maxSetup stop;
and Marketposition = 1.

After some time SL is met for first position so we:
Sell("LXx") from entry("LEx1") Next Bar at slLong stop;
and still Marketposition = 1.

Next after some time condition for entering position is met but the system is not able to evaluate if we should use
Buy("LEx1") MyContracts contracts Next Bar at maxSetup stop;
or
Buy("LEx2") MyContracts contracts Next Bar at maxSetup stop;

But my knowledge is no so huge in EL so maybe there is some workaround . Every position will have other SL.



ABCTG View Post
jamesfisher,

you can use the Marketposition reserved word to check that the first entry is only taken when flat or short and the second one only when you are long already.
From what you describe this should fix the issue.

Regards,

ABCTG


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


jamesfisher,

which entry do you want to use in the situation quoted below and why is the system not able to evaluate that?

Regards,

ABCTG


jamesfisher View Post
Next after some time condition for entering position is met but the system is not able to evaluate if we should use
Buy("LEx1") MyContracts contracts Next Bar at maxSetup stop;
or
Buy("LEx2") MyContracts contracts Next Bar at maxSetup stop;


Reply With Quote
 
  #14 (permalink)
Trading Apprentice
City Poland
 
Futures Experience: Advanced
Platform: MT4,AmiBroker,MultiCharts
Favorite Futures: FX, futures, options, commodities, stocks
 
Posts: 14 since Sep 2012
Thanks: 1 given, 1 received

In this case should be used:
Buy("LEx1") MyContracts contracts Next Bar at maxSetup stop;

because below entry is still in the market:
Buy("LEx2") MyContracts contracts Next Bar at maxSetup stop;



ABCTG View Post
jamesfisher,

which entry do you want to use in the situation quoted below and why is the system not able to evaluate that?

Regards,

ABCTG


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

jamesfisher,

I see. You could use a combination of the market position and the last entry name to check and decide which order to use. However to receive the entry name in a multi leg position you will have to use StrategyHost object. You can find an example in the Tradestation forum here.

Regards,

ABCTG



jamesfisher View Post
In this case should be used:
Buy("LEx1") MyContracts contracts Next Bar at maxSetup stop;

because below entry is still in the market:
Buy("LEx2") MyContracts contracts Next Bar at maxSetup stop;


Reply With Quote
The following user says Thank You to ABCTG for this post:

Reply



futures io > > > > Setting StopLoss in Easy Language via Variable1-99 (calculated live)

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
Easy Language to Ninja Script fireman912 NinjaTrader Programming 4 June 23rd, 2011 11:39 PM
easy language ..not easy... Serger EasyLanguage Programming 4 April 26th, 2011 04:42 PM
Easy Language for tradestation esam_jir EasyLanguage Programming 3 November 3rd, 2010 06:22 PM


All times are GMT -4. The time now is 04:33 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-15 in 0.09 seconds with 29 queries on phoenix via your IP 54.234.255.29