logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
lcl  
#1 Posted : Tuesday, October 18, 2005 2:15:25 AM(UTC)
lcl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 5/22/2005(UTC)
Posts: 59

Hello All I have been able to get a system code for Tradestation in ELD format but cannot seem to understand it. If anyone could assist in converting it into MetaStock format, I would be very grateful. {***************************} {Program designed and coded by George Pruitt} vars: daysInTrade(0), lookBack(30), midLevel(0), longLiqPt(0), shortLiqPt(0); if(marketPosition=1) then begin midLevel = entryPrice(0) - (highest(high,30) - lowest(low,30))/2.0; end; if(marketPosition=-1) then begin midLevel = entryPrice(0) + (highest(high,30) - lowest(low,30))/2.0; end; if(marketPosition <> 0 and barsSinceEntry(0) > 0 and (Mod(barsSinceEntry(0),5)=0)) then begin lookBack = lookBack - 2; lookBack = maxlist(lookBack,6); end; longLiqPt = maxlist(lowest(low,lookBack),midLevel); shortLiqPt = minlist(highest(high,lookBack),midLevel); if(barsSinceEntry(0) = 0 and marketPosition <> 0) then begin longLiqPt = midLevel; shortLiqPt = midLevel; end; if(marketPosition = 1) then exitlong("long exit") at longLiqPt stop; if(marketPosition = -1) then exitshort("short exit") at shortLiqPt stop; buy("donchian buy") tomorrow at highest(high,30) stop; sell("donchian sell") tomorrow at lowest(low,30) stop; if(marketPosition = 0) then lookBack = 30; {****************************} Many thanks!!
Users browsing this topic
Guest (Hidden)
Similar Topics
Code Conversion (Formula Assistance)
by Doug 10/8/2005 11:23:31 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.