julesrulesny![]() Legend ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498 Joined: 8/28/2009 Location: NYC ![]() | 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 |