VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy - MultiCharts | futures io social day trading
futures io futures trading


VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy
Updated: Views / Replies:24,589 / 39
Created: by Big Mike Attachments:16

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

VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy

  #31 (permalink)
Elite Member
Crete, IL/USA
 
Futures Experience: Intermediate
Platform: NinjaTrader, Mt4
Broker/Data: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Favorite Futures: ES, CL, EUR/USD, TF
 
spinnybobo's Avatar
 
Posts: 171 since Aug 2009
Thanks: 99 given, 48 received


ABCTG View Post
Hi Spencer,

in Multicharts for example orders that are sent as one group like an entry with a stop and target would be treated as OCO. Once the stop or target is hit the other order would get cancelled.

Regards,
ABCTG

Hey thanks ABCTG

when you say "the other order would get cancelled" do you mean ALL the other orders? Or do you mean just the amount of contracts --- like target1 gets hit and it is 1 contract so it only takes 1 contract off the stop? It seems like the way it is written here, it makes me think when ANY stop or target is hit, it cancels everything which is why it is reset ?

thanks
Spencer

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

Spencer,

I didn't test this particular code, but from what I see the worst that could happen is that when there is a scale out of the position the remaining stop order gets cancelled and resend with the new (remaining) size.
I would always suggest to test drive the code behavior on a demo account to make sure it does what you want it to do.

Regards,
ABCTG


spinnybobo View Post
Hey thanks ABCTG

when you say "the other order would get cancelled" do you mean ALL the other orders? Or do you mean just the amount of contracts --- like target1 gets hit and it is 1 contract so it only takes 1 contract off the stop? It seems like the way it is written here, it makes me think when ANY stop or target is hit, it cancels everything which is why it is reset ?

thanks
Spencer


Reply With Quote
 
  #33 (permalink)
Trading Apprentice
Hsinchu+Taiwan
 
Futures Experience: Beginner
Platform: MT4,Multicharts, Tradestation
Favorite Futures: Forex
 
Posts: 1 since Jun 2014
Thanks: 2 given, 0 received


Dear Mike,
Much thanks for your sharing, it helps me a lot.
best regards,
Ben

Reply With Quote
 
  #34 (permalink)
zivo
Helsingborg
 
Futures Experience: Intermediate
Platform: Bullcharts, Multicharts
Favorite Futures: ES and scandinavian Stocks
 
Posts: 16 since May 2011
Thanks: 5 given, 5 received

BMT money maker execute on same bar if possible

Hi,

I have the a similar problem where I would like to execute all trades on the same bar if possible instead of waiting for next one. Pl. see image. where last position should have hit target on prior bar. Also in this case it stops out directly. Do not know shy. Seem to be the wrong sequence trade. many thanks in advance.


 
Code

[IntrabarOrderGeneration = true]


inputs:
	smalength ( 200 ),
	emalength ( 100 ),
	hmalength ( 34 ),
	target1 ( 12 ),
	target2 ( 12 ),
	target3 ( 20 ),
	stopsize ( 12 ),
	BE2 ( 0 ), // 0=false, 1=true
	BE3 ( 0 ), // 0=false, 1=true
	
	rsilength ( 14 ),
       Price ( Close) ,
       Oversold ( 30 ),
       Overbought ( 70 );

	
vars:
	TickSize	( MinMove / PriceScale ),
	smav		( 0 ),
	emav		( 0 ),
	hmav		( 0 ),
	t1		( target1 * TickSize ),
	t2		( (target1 + target2) * TickSize ),
	t3		( (target1 + target2 + target3) * TickSize ),
	st1		( 0 ),
	st2		( 0 ),
	st3		( 0 ),
	
	var0		( 0 );
	
	

	
smav = Average(Close, smalength);
emav = XAverage(Close, emalength);
hmav = jtHMA(Close, hmalength);

var0 = RSI(Price,rsilength);


// open new positions


if (BarStatus(1) = 2) then begin

condition8 = var0 crosses above oversold;

end;



if (BarStatus(1) = 2) then begin


condition18 = var0 crosses belowx overbought;  

end;





if MarketPosition = 0 then begin

	if condition8 then begin
	
		Buy ("Enter long") 3 Contracts Next Bar At Market;
	
	end; 

	if condition18 then begin
	
		SellShort ("Enter short") 3 Contracts Next Bar At Market;
	
	end; 
end;

// manage open orders

if MarketPosition = 1 then begin

	st1 = EntryPrice - (stopsize * TickSize);
	st2 = iff(BE2 = 1, EntryPrice, EntryPrice - (stopsize * TickSize));
	st3 = iff(BE3 = 1, EntryPrice, EntryPrice - (stopsize * TickSize));
	
	if CurrentContracts = 1 then begin
		Sell ("Exit l3-c1 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;
		Sell ("Exit l3-c1 Stop") 1 Contracts Next Bar At st3 Stop;
	end;

	if CurrentContracts = 2 then begin
		Sell ("Exit l2-c2 Target") 1 Contracts Next Bar At (EntryPrice + t2) Limit;
		Sell ("Exit l2-c2 Stop") 1 Contracts Next Bar At st2 Stop;
		Sell ("Exit l3-c2 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;
		Sell ("Exit l3-c2 Stop") 1 Contracts Next Bar At st3 Stop;
	end;
	
	if CurrentContracts = 3 then begin
		Sell ("Exit l1-c3 Target") 1 Contracts Next Bar At (EntryPrice + t1) Limit;
		Sell ("Exit l1-c3 Stop") 1 Contracts Next Bar At st1 Stop;
		Sell ("Exit l2-c3 Target") 1 Contracts Next Bar At (EntryPrice + t2) Limit;
		Sell ("Exit l2-c3 Stop") 1 Contracts Next Bar At st2 Stop;
		Sell ("Exit l3-c3 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;
		Sell ("Exit l3-c3 Stop") 1 Contracts Next Bar At st3 Stop;
	end;
end;

if MarketPosition = -1 then begin

	st1 = EntryPrice + (stopsize * TickSize);
	st2 = iff(BE2 = 1, EntryPrice, EntryPrice + (stopsize * TickSize));
	st3 = iff(BE3 = 1, EntryPrice, EntryPrice + (stopsize * TickSize));
	
	if CurrentContracts = 1 then begin
		BuyToCover ("Exit s3-c1 Target") 1 Contracts Next Bar At (EntryPrice - t3) Limit;
		BuyToCover ("Exit s3-c1 Stop") 1 Contracts Next Bar At st3 Stop;
	end;

	if CurrentContracts = 2 then begin
		BuyToCover ("Exit s2-c2 Target") 1 Contracts Next Bar At (EntryPrice - t2) Limit;
		BuyToCover ("Exit s2-c2 Stop") 1 Contracts Next Bar At st2 Stop;
		BuyToCover ("Exit s3-c2 Target") 1 Contracts Next Bar At (EntryPrice - t3) Limit;
		BuyToCover ("Exit s3-c2 Stop") 1 Contracts Next Bar At st3 Stop;
	end;
	
	if CurrentContracts = 3 then begin
		BuyToCover ("Exit s1-c3 Target") 1 Contracts Next Bar At (EntryPrice - t1) Limit;
		BuyToCover ("Exit s1-c3 Stop") 1 Contracts Next Bar At st1 Stop;
		BuyToCover ("Exit s2-c3 Target") 1 Contracts Next Bar At (EntryPrice - t2) Limit;
		BuyToCover ("Exit s2-c3 Stop") 1 Contracts Next Bar At st2 Stop;
		BuyToCover ("Exit s3-c3 Target") 1 Contracts Next Bar At (EntryPrice - t3) Limit;
		BuyToCover ("Exit s3-c3 Stop") 1 Contracts Next Bar At st3 Stop;
	end;
	
end;

Reply With Quote
 
  #35 (permalink)
Trading Apprentice
Dubai, UAE
 
Futures Experience: Advanced
Platform: Multicharts
Favorite Futures: Gold
 
Posts: 10 since Sep 2014
Thanks: 2 given, 1 received


stefanols View Post
Hi,

I have the a similar problem where I would like to execute all trades on the same bar if possible instead of waiting for next one. Pl. see image. where last position should have hit target on prior bar. Also in this case it stops out directly. Do not know shy. Seem to be the wrong sequence trade. many thanks in advance.

Enable intrabar order generation, and use bar magnifier to allow trades within a bar, as opposed to next bar.

Reply With Quote
 
  #36 (permalink)
Trading Apprentice
Dubai, UAE
 
Futures Experience: Advanced
Platform: Multicharts
Favorite Futures: Gold
 
Posts: 10 since Sep 2014
Thanks: 2 given, 1 received

I would be interested in seeing a sample code for a trailing stop with a trailing step.
The built in trailing stop function (setdollartrailing) works in a very primitive way, in that it starts trailing once peak profit is hit based on the amount of loss entered in the setdollartrailing function.
What I want is to be able to start a trailing stop from any price that I specify, and then step it by x number of pips, rather than 1 pip, which seems to be the default.

Reply With Quote
 
  #37 (permalink)
Trading Apprentice
New York + US
 
Futures Experience: Intermediate
Platform: MultiCharts
Favorite Futures: Indian Stocks
 
Posts: 17 since Aug 2015
Thanks: 5 given, 0 received

Dollar difference tool

Hello folks,

I need to know if anyone can use or program the dollar difference tool in Multicharts easylanguage.
means if we draw a trendline it gives the difference of the price...
Please help anyone is aware of it!

Reply With Quote
 
  #38 (permalink)
Elite Member
New York, New York, United States
 
Futures Experience: Beginner
Platform: TOS
Favorite Futures: Options
 
vitrader's Avatar
 
Posts: 53 since Jul 2015
Thanks: 13 given, 6 received

I would love to see more video tutorials for Multicharts.

Reply With Quote
 
  #39 (permalink)
Trading Apprentice
Sarasota Fl
 
Futures Experience: Advanced
Platform: Tradestation
Favorite Futures: Emini ES
 
Posts: 1 since Nov 2017
Thanks: 0 given, 0 received

Just joined and had a coding question from your past post.

Hi everyone, Just joined today and love the site. My question is from a past post Mike had done regarding his post, "How to create an advanced MultiCharts EasyLanguage Strategy." I'm using TradeStation and programming a strategy. I actually copied Mike's coding and it's exactly what I'm looking for when it comes to scaling out, but have added in my own entry criteria, Unfortunately, I have a couple of problems I can't seem to figure out.

1. I have a particular signal that the trade is executed on. Kind of like a trend signal. After all my targets 3 targets are hit, the problem I'm having is, I don't want the strategy to execute another trade on the same trend signal. Once I'm filled on my third target, it will immediately execute another order and most of the time I'm stopped out giving away all the profits I just made. Does anyone know the coding to only allow it to execute one trade per signal?

2. Does anyone know the coding for a start and stop time the strategy will run? Basically just want to trade the morning E Mini S&P session, nothing after lunch.. I've tried to use the following, but not sure where to put it in the code so it functions properly.

input:
begin_time(0929),
end_time(1200);
if time > begin_time and time < end_time then
begin
{--Enter trade criteria here}
{--- EOD liquidation ---}
if time > end_time then
begin
if marketposition > 0 then sell next bar at market;
if marketposition < 0 then buytocover next bar at market;
end;

3. My final question is, what would be the coding for a maximum loss dollar wise per day and a maximum profit per day.. Once either of those are met, the system stops trading. I would need it to take into account any previous days profit or losses as well as calculate the current trade into the total.. Another words, if my max loss were $500 and I'm down $300 and the system executes another trade, it realizes I only have $200 more to go before it stop trading for the day.

If someone could help me with these final touches, I would appreciate it more than you know. I would need the coding and where to put them. Actually, if you could put them in the following code from Mike on June 2011, that would be terrific.


Mikes coding:

Big Mike Trading

June 2011

}





inputs:

smalength ( 200 ),

emalength ( 100 ),

hmalength ( 34 ),

target1 ( 12 ),

target2 ( 12 ),

target3 ( 20 ),

stopsize ( 12 ),

BE2 ( 0 ), // 0=false, 1=true

BE3 ( 0 ); // 0=false, 1=true



vars:

TickSize ( MinMove / PriceScale ),

smav ( 0 ),

emav ( 0 ),

hmav ( 0 ),

t1 ( Target1 * TickSize ),

t2 ( (Target1 + Target2) * TickSize ),

t3 ( (Target1 + Target2 + Target3) * TickSize ),

st1 ( 0 ),

st2 ( 0 ),

st3 ( 0 );



smav = Average(Close, smalength);

emav = XAverage(Close, emalength);

hmav = jtHMA(Close, hmalength);





// open new positions



if MarketPosition = 0 then begin



if smav > smav[1] and emav > emav[1] and hmav > hmav[1] then begin



Buy ("Enter long") 3 Contracts Next Bar At Market;



end;



if smav < smav[1] and emav < emav[1] and hmav < hmav[1] then begin



SellShort ("Enter short") 3 Contracts Next Bar At Market;



end;

end;



// manage open orders



if MarketPosition = 1 then begin



st1 = EntryPrice - (stopsize * TickSize);

st2 = iff(BE2 = 1, EntryPrice, EntryPrice - (stopsize * TickSize));

st3 = iff(BE3 = 1, EntryPrice, EntryPrice - (stopsize * TickSize));



if CurrentContracts = 1 then begin

Sell ("Exit l3-c1 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;

Sell ("Exit l3-c1 Stop") 1 Contracts Next Bar At st3 Stop;

end;



if CurrentContracts = 2 then begin

Sell ("Exit l2-c2 Target") 1 Contracts Next Bar At (EntryPrice + t2) Limit;

Sell ("Exit l2-c2 Stop") 1 Contracts Next Bar At st2 Stop;

Sell ("Exit l3-c2 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;

Sell ("Exit l3-c2 Stop") 1 Contracts Next Bar At st3 Stop;

end;



if CurrentContracts = 3 then begin

Sell ("Exit l1-c3 Target") 1 Contracts Next Bar At (EntryPrice + t1) Limit;

Sell ("Exit l1-c3 Stop") 1 Contracts Next Bar At st1 Stop;

Sell ("Exit l2-c3 Target") 1 Contracts Next Bar At (EntryPrice + t2) Limit;

Sell ("Exit l2-c3 Stop") 1 Contracts Next Bar At st2 Stop;

Sell ("Exit l3-c3 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;

Sell ("Exit l3-c3 Stop") 1 Contracts Next Bar At st3 Stop;

end;

end;



if MarketPosition = -1 then begin



st1 = EntryPrice + (stopsize * TickSize);

st2 = iff(BE2 = 1, EntryPrice, EntryPrice + (stopsize * TickSize));

st3 = iff(BE3 = 1, EntryPrice, EntryPrice + (stopsize * TickSize));



if CurrentContracts = 1 then begin

BuyToCover ("Exit s3-c1 Target") 1 Contracts Next Bar At (EntryPrice - t3) Limit;

BuyToCover ("Exit s3-c1 Stop") 1 Contracts Next Bar At st3 Stop;

end;



if CurrentContracts = 2 then begin

BuyToCover ("Exit s2-c2 Target") 1 Contracts Next Bar At (EntryPrice - t2) Limit;

BuyToCover ("Exit s2-c2 Stop") 1 Contracts Next Bar At st2 Stop;

BuyToCover ("Exit s3-c2 Target") 1 Contracts Next Bar At (EntryPrice - t3) Limit;

BuyToCover ("Exit s3-c2 Stop") 1 Contracts Next Bar At st3 Stop;

end;



if CurrentContracts = 3 then begin

BuyToCover ("Exit s1-c3 Target") 1 Contracts Next Bar At (EntryPrice - t1) Limit;

BuyToCover ("Exit s1-c3 Stop") 1 Contracts Next Bar At st1 Stop;

BuyToCover ("Exit s2-c3 Target") 1 Contracts Next Bar At (EntryPrice - t2) Limit;

BuyToCover ("Exit s2-c3 Stop") 1 Contracts Next Bar At st2 Stop;

BuyToCover ("Exit s3-c3 Target") 1 Contracts Next Bar At (EntryPrice - t3) Limit;

BuyToCover ("Exit s3-c3 Stop") 1 Contracts Next Bar At st3 Stop;

end;



end;


Thanks so much in advance
Paul

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


Paul,

regarding your questions:

1. This is hard to say without the exact code. In general you can store the time or bar when your signal conditions are true in a variable. Then before you issue your entry, you use a second variable and check if the value within the second variable is different than the value in the first variable - if it is, you allow the entry and update the second variable to the value of the first variable. This would only allow entries on new signals.

2. Your entry conditions and entry orders would have to go within the section labeled "{--Enter trade criteria here}".

3. @Big Mike posted some code that can accomplish that: https://futures.io/easylanguage-programming/3346-easylanguage-daily-profit-daily-loss-limit-strategy.html

Regards,

ABCTG


FormerAMEXTrader View Post
Hi everyone, Just joined today and love the site. My question is from a past post Mike had done regarding his post, "How to create an advanced MultiCharts EasyLanguage Strategy." I'm using TradeStation and programming a strategy. I actually copied Mike's coding and it's exactly what I'm looking for when it comes to scaling out, but have added in my own entry criteria, Unfortunately, I have a couple of problems I can't seem to figure out.

1. I have a particular signal that the trade is executed on. Kind of like a trend signal. After all my targets 3 targets are hit, the problem I'm having is, I don't want the strategy to execute another trade on the same trend signal. Once I'm filled on my third target, it will immediately execute another order and most of the time I'm stopped out giving away all the profits I just made. Does anyone know the coding to only allow it to execute one trade per signal?

2. Does anyone know the coding for a start and stop time the strategy will run? Basically just want to trade the morning E Mini S&P session, nothing after lunch.. I've tried to use the following, but not sure where to put it in the code so it functions properly.

input:
begin_time(0929),
end_time(1200);
if time > begin_time and time < end_time then
begin
{--Enter trade criteria here}
{--- EOD liquidation ---}
if time > end_time then
begin
if marketposition > 0 then sell next bar at market;
if marketposition < 0 then buytocover next bar at market;
end;

3. My final question is, what would be the coding for a maximum loss dollar wise per day and a maximum profit per day.. Once either of those are met, the system stops trading. I would need it to take into account any previous days profit or losses as well as calculate the current trade into the total.. Another words, if my max loss were $500 and I'm down $300 and the system executes another trade, it realizes I only have $200 more to go before it stop trading for the day.

If someone could help me with these final touches, I would appreciate it more than you know. I would need the coding and where to put them. Actually, if you could put them in the following code from Mike on June 2011, that would be terrific.


Mikes coding:

Big Mike Trading

June 2011

}





inputs:

smalength ( 200 ),

emalength ( 100 ),

hmalength ( 34 ),

target1 ( 12 ),

target2 ( 12 ),

target3 ( 20 ),

stopsize ( 12 ),

BE2 ( 0 ), // 0=false, 1=true

BE3 ( 0 ); // 0=false, 1=true



vars:

TickSize ( MinMove / PriceScale ),

smav ( 0 ),

emav ( 0 ),

hmav ( 0 ),

t1 ( Target1 * TickSize ),

t2 ( (Target1 + Target2) * TickSize ),

t3 ( (Target1 + Target2 + Target3) * TickSize ),

st1 ( 0 ),

st2 ( 0 ),

st3 ( 0 );



smav = Average(Close, smalength);

emav = XAverage(Close, emalength);

hmav = jtHMA(Close, hmalength);





// open new positions



if MarketPosition = 0 then begin



if smav > smav[1] and emav > emav[1] and hmav > hmav[1] then begin



Buy ("Enter long") 3 Contracts Next Bar At Market;



end;



if smav < smav[1] and emav < emav[1] and hmav < hmav[1] then begin



SellShort ("Enter short") 3 Contracts Next Bar At Market;



end;

end;



// manage open orders



if MarketPosition = 1 then begin



st1 = EntryPrice - (stopsize * TickSize);

st2 = iff(BE2 = 1, EntryPrice, EntryPrice - (stopsize * TickSize));

st3 = iff(BE3 = 1, EntryPrice, EntryPrice - (stopsize * TickSize));



if CurrentContracts = 1 then begin

Sell ("Exit l3-c1 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;

Sell ("Exit l3-c1 Stop") 1 Contracts Next Bar At st3 Stop;

end;



if CurrentContracts = 2 then begin

Sell ("Exit l2-c2 Target") 1 Contracts Next Bar At (EntryPrice + t2) Limit;

Sell ("Exit l2-c2 Stop") 1 Contracts Next Bar At st2 Stop;

Sell ("Exit l3-c2 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;

Sell ("Exit l3-c2 Stop") 1 Contracts Next Bar At st3 Stop;

end;



if CurrentContracts = 3 then begin

Sell ("Exit l1-c3 Target") 1 Contracts Next Bar At (EntryPrice + t1) Limit;

Sell ("Exit l1-c3 Stop") 1 Contracts Next Bar At st1 Stop;

Sell ("Exit l2-c3 Target") 1 Contracts Next Bar At (EntryPrice + t2) Limit;

Sell ("Exit l2-c3 Stop") 1 Contracts Next Bar At st2 Stop;

Sell ("Exit l3-c3 Target") 1 Contracts Next Bar At (EntryPrice + t3) Limit;

Sell ("Exit l3-c3 Stop") 1 Contracts Next Bar At st3 Stop;

end;

end;



if MarketPosition = -1 then begin



st1 = EntryPrice + (stopsize * TickSize);

st2 = iff(BE2 = 1, EntryPrice, EntryPrice + (stopsize * TickSize));

st3 = iff(BE3 = 1, EntryPrice, EntryPrice + (stopsize * TickSize));



if CurrentContracts = 1 then begin

BuyToCover ("Exit s3-c1 Target") 1 Contracts Next Bar At (EntryPrice - t3) Limit;

BuyToCover ("Exit s3-c1 Stop") 1 Contracts Next Bar At st3 Stop;

end;



if CurrentContracts = 2 then begin

BuyToCover ("Exit s2-c2 Target") 1 Contracts Next Bar At (EntryPrice - t2) Limit;

BuyToCover ("Exit s2-c2 Stop") 1 Contracts Next Bar At st2 Stop;

BuyToCover ("Exit s3-c2 Target") 1 Contracts Next Bar At (EntryPrice - t3) Limit;

BuyToCover ("Exit s3-c2 Stop") 1 Contracts Next Bar At st3 Stop;

end;



if CurrentContracts = 3 then begin

BuyToCover ("Exit s1-c3 Target") 1 Contracts Next Bar At (EntryPrice - t1) Limit;

BuyToCover ("Exit s1-c3 Stop") 1 Contracts Next Bar At st1 Stop;

BuyToCover ("Exit s2-c3 Target") 1 Contracts Next Bar At (EntryPrice - t2) Limit;

BuyToCover ("Exit s2-c3 Stop") 1 Contracts Next Bar At st2 Stop;

BuyToCover ("Exit s3-c3 Target") 1 Contracts Next Bar At (EntryPrice - t3) Limit;

BuyToCover ("Exit s3-c3 Stop") 1 Contracts Next Bar At st3 Stop;

end;



end;


Thanks so much in advance
Paul


Reply With Quote

Reply



futures io > > > > VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy

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
VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy Big Mike NinjaTrader 63 November 6th, 2016 03:25 PM
VIDEO: MultiCharts vs. NinjaTrader strategy backtesting and optimization Big Mike MultiCharts 53 June 12th, 2016 02:34 PM
Anyone know of good video tutorial for C# language? whoisthere48 NinjaTrader Programming 11 April 1st, 2012 06:33 PM
Is there a video tutorial on creating a NT indicator (in 6.5)? Thanks. aquarian1 NinjaTrader 9 May 16th, 2011 06:56 PM
VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy Big Mike NinjaTrader Programming 0 January 26th, 2010 06:22 AM


All times are GMT -4. The time now is 11:25 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-14 in 0.10 seconds with 19 queries on phoenix via your IP 54.227.51.103