Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 01-18-2009, 07:52 PM   #1

Join Date: Oct 2008
Location: new york
Posts: 54
Ignore this user

Thanks: 17
Thanked 8 Times in 4 Posts

Easy Language - Question

i am using the following statements in my strategy
Buy("Long 2") 2 contracts next bar at open;

however, the number of open contracts are only 1. I write the currentcontracts variable out to a file this is how i know that its 1.


why?

what i am trying to do is :
if condition 1 is met then
buy 2 contracts this bar;
sold = false
end;

if ConditionX is met then
sell 1 contract this bar;
sold = true;
end;

if sold = true then
setstopcontracts;
setDollarTrailingStop(xxx );
end;

help!!
ephi144 is offline  
Reply With Quote
Old 01-25-2009, 10:15 PM   #2

Join Date: Dec 2008
Location: miami beach
Posts: 12
Ignore this user

Thanks: 0
Thanked 2 Times in 2 Posts

Re: Easy Language - Question

I believe you need to enable contract 'Pyramiding' in your strategy options. this allows you to send multiple orders in the same EL pass.
tradelink is offline  
Reply With Quote

Reply

« TS Help | Indicator »
Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Language Help JKLM Automated Trading 7 02-10-2009 11:17 PM
Help with Easy Language BrianA Coding Forum 29 01-13-2009 03:32 PM
Easy Language in OEC, Help with Channel Indicator popstocks Coding Forum 10 11-07-2008 06:09 PM
Easy Language Strategy Help Marc33139 Automated Trading 3 07-28-2008 11:35 AM
Easy Language - Help with Simple System gatrader E-mini Futures Trading Laboratory 8 12-17-2007 06:40 PM

All times are GMT -4. The time now is 12:22 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.