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.

 
julesrulesny

Legend
100100100100252525
Posts: 498

Joined: 8/28/2009
Location: NYC

User Profile
 
Subject : RE: SysTriggerLine - Reversing Signals(how to?) #S
Posted : 12/31/2014 6:33 PM
Post #23258 - In reply to #23257

Ok.
Not exactly what you mean by "...you can only test them"? If I can't use LongSignal ShortSignal, how is it they can be tested? Do you mean "Debugging"?

Why I'm confused is just b/c I see LongSignal ShortSignal being assigned in other #Stops in OLang? Rather a more appropriate term is they are being used in these Stops? (**Think I recall now discussing this once a long time ago.. a bit of dejavu).

Perhaps, I don't understand the difference of the term "assign" then????


For example: Here's a STOP in OTPRO ...."PEAK STOP"


#Stop ' Defines that this is a stop (required for project folders)

' ***************************************************************************
' * Peak Stop
' * by Hans van der Wal
' *
' * Summary:
' * Stop out of an existing trade if we go a given percent below yesterday's Close
' *
' * Parameters:
' * Percent = percentage value to use.
' *
' * Last Update: November 1, 2005
' ***************************************************************************

#Param "Percent", 1 ' Defines parameter Percent with a default value of 1(%)

' If we have a long signal in the vote line, and
' the close price is at least Percent % (1%) below yesterday's close price
If Signal = LongSignal And (C-C[1])/C[1] < -1* Percent/100 Then
Signal = ExitSignal ' exit the trade

' If we have a short signal in the vote line, and
' the close price is at least Percent % (1%) above yesterday's close price
ElseIf Signal = ShortSignal And (C-C[1])/C[1] > Percent/100 Then
Signal = ExitSignal ' exit the trade
End If


Deleting message 23258 : RE: SysTriggerLine - Reversing Signals(how to?) #S


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