OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Greg Winch

Regular
2525
Posts: 71

Joined: 1/21/2007
Location: Phoenix

User Profile
 
Subject : RE: Intraday Stops
Posted : 1/28/2009 7:53 PM
Post #11352 - In reply to #11333

Matthew,

Thank you for your patience with my learning curve.
I've read through your post #11333, printed it out and atempted to program the LLV Stop as a virtual stop.

I am still having no success with setting a stop (i.e. LLV(3) for use on the next bar.
I am copying the code I wrote for the stop level I am looking for:
-----------------------------------------------------------------
#Stop

#Param "PctCush",0.005
#Param "LB_Periods",3

Dim MyStop as single

If Signal=LongSignal Then
MyStop=LLV(L,LB_Periods)[1]-(LLV(L,LB_Periods)[1]*PctCush)

Elseif Signal=ShortSignal Then
MyStop=HHV(H,LB_Periods)[1]+(HHV(H,LB_Periods)[1]*PctCush)

End If
----------------------------------------------------------------------
Can you let me know if I'm on the right path here and if so, exactly how I can get this stop level to fire as a Stop Market order during a daily bar?

My problem I think is combining the above "MyStop" with your instruction in the post.

Greg
Deleting message 11352 : RE: Intraday Stops


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.