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



VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy


Discussion in MultiCharts

Updated by ABCTG
      Top Posters
    1. looks_one ABCTG with 7 posts (3 thanks)
    2. looks_two Big Mike with 6 posts (82 thanks)
    3. looks_3 andby with 3 posts (1 thanks)
    4. looks_4 spinnybobo with 2 posts (0 thanks)
      Best Posters
    1. looks_one Big Mike with 13.7 thanks per post
    2. looks_two Lampert with 3.0 thanks per post
    3. looks_3 Family Trader with 2.0 thanks per post
    4. looks_4 ABCTG with 0.4 thanks per post
    1. trending_up 32,507 views
    2. thumb_up 95 thanks given
    3. group 30 followers
    1. forum 39 replies
    2. attach_file 16 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy

(login for full post details)
  #31 (permalink)
Crete, IL/USA
 
Experience: Intermediate
Platform: NinjaTrader, Mt4
Broker: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Trading: ES, CL, EUR/USD, TF
 
spinnybobo's Avatar
 
Posts: 181 since Aug 2009
Thanks: 103 given, 56 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

Follow me on Twitter Visit my Facebook Reply With Quote

Can you help answer these questions
from other members on futures io?
The value of High minus Open and Open minus Low.
ThinkOrSwim
QDEL
Stocks and ETFs
3x Fangdango
Traders Hideout
Dollar crash in 2021
Currencies
Macros for flatten and reverse
TradeStation
 
Best Threads (Most Thanked)
in the last 7 days on futures io
VWAP for stock index futures trading?
25 thanks
Coronavirus COVID-19
23 thanks
Lost & losing hope
22 thanks
Emini 4 Tick Scalp still valid?
18 thanks
Price Action Kewltech Style
15 thanks
 
(login for full post details)
  #32 (permalink)
Hamburg Germany
 
Experience: Advanced
Platform: Multicharts, Tradestation
Broker: DTN IQ
Trading: ES
 
Posts: 2,199 since Apr 2013
Thanks: 386 given, 1,432 received

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


Follow me on Twitter Visit my Facebook Reply With Quote
 
(login for full post details)
  #33 (permalink)
Hsinchu+Taiwan
 
 
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
 
(login for full post details)
  #34 (permalink)
Helsingborg
 
Experience: Intermediate
Platform: Bullcharts, Multicharts
Trading: ES and scandinavian Stocks
 
Posts: 17 since May 2011
Thanks: 6 given, 5 received

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
 
(login for full post details)
  #35 (permalink)
Dubai, UAE
 
 
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
 
(login for full post details)
  #36 (permalink)
Dubai, UAE
 
 
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
 
(login for full post details)
  #37 (permalink)
New York + US
 
Experience: Intermediate
Platform: MultiCharts
Trading: Indian Stocks
 
Posts: 37 since Aug 2015
Thanks: 10 given, 2 received

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
 
(login for full post details)
  #38 (permalink)
New York, New York, United States
 
Experience: Beginner
Platform: TOS
Trading: Options
 
vitrader's Avatar
 
Posts: 53 since Jul 2015
Thanks: 13 given, 7 received

I would love to see more video tutorials for Multicharts.

Reply With Quote
 
(login for full post details)
  #39 (permalink)
Sarasota Fl
 
 
Posts: 1 since Nov 2017
Thanks: 0 given, 0 received

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
 
(login for full post details)
  #40 (permalink)
Hamburg Germany
 
Experience: Advanced
Platform: Multicharts, Tradestation
Broker: DTN IQ
Trading: ES
 
Posts: 2,199 since Apr 2013
Thanks: 386 given, 1,432 received


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:

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


Follow me on Twitter Visit my Facebook Reply With Quote


futures io Trading Community Platforms and Indicators MultiCharts > VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy


November 9, 2017


Upcoming Webinars and Events
     



Copyright © 2020 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