Does anyone know if it's possible to set up an automated
strategy on Multicharts to take only long trades? On
Tradestation, you can use strategy parameters to choose what should
be on or off. Is it possible to do that on
Multicharts?
In most functions, it does mimic Tradestation very closely.
But I can't find a way to set strategy parameters to make a
strategy long only. If no one here has this figured out, I'll
use their live help in the morning.
Newsletter
Subscribe to our email list for regular free market updates
as well as a chance to get coupons!
Long only on Multicharts
Posted by algyros on 7th of Nov 2010 at 02:08 pm
Does anyone know if it's possible to set up an automated strategy on Multicharts to take only long trades? On Tradestation, you can use strategy parameters to choose what should be on or off. Is it possible to do that on Multicharts?
Title: code Here's the complete code
Posted by ascr on 8th of Nov 2010 at 10:39 am
Here's the complete code for a Long only strategy:
inputs: Price( Close ), Length( 8 ), ConfirmBars( 1 );
variables: var0( 0 ), var1( 0 ), x(0);
x = initialcapital+netprofit;
setprofittarget (x * 0.15);
setstoploss (x * 0.06);
value1 = Average( Price, Length )of data2;
condition1 = Price of data2 crosses above value1;
condition2 = Price of data2 crosses below value1;
if condition1 then
var0 = var0 + 1
else
var0 = 0 ;
if condition2 then
var1 = var1 + 1
else
var1 = 0 ;
condition1 = CurrentBar > ConfirmBars and var0 = ConfirmBars ;
condition2 = CurrentBar > ConfirmBars and var1 = ConfirmBars ;
if condition1 then
Buy ( "MACrossLE" ) x/close contracts this bar;
if condition2 then
Sell("Complete Exit") x/close contracts this bar;
Maybe a workaround is to
Posted by darnelds on 8th of Nov 2010 at 10:34 am
Maybe a workaround is to trick it by specifying zero shares when a signal goes short.
I would think so..I fairly
Posted by kwebb on 7th of Nov 2010 at 07:36 pm
I would think so..I fairly new to multicharts but it mimics tradestation quite closely.
In most functions, it does
Posted by algyros on 7th of Nov 2010 at 07:46 pm
In most functions, it does mimic Tradestation very closely. But I can't find a way to set strategy parameters to make a strategy long only. If no one here has this figured out, I'll use their live help in the morning.