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.

 
John Crowley

Member

Posts: 8

Joined: 6/17/2016

User Profile
 
Subject : RE: Unique trailing stop
Posted : 6/18/2016 1:55 AM
Post #26149 - In reply to #26148

I've gone one step further and with what actually turned out to be simpler than I thought I've produced a stop that (almost) matches with the requirements
here is the code:
#Stop

Dim myvalue as single
Dim mystop as single

If WT_LL(0.7, 14, 0) < sma(30) Then
MyValue = WT_LL(0.70, 14, 0)
Else If MyValue = sma(30)
end if

MyStop = MyValue


If Signal = Longsignal And L Signal = ExitSignal
End if

plotprice("Stop",MyStop,green)

the plot is displayed in green on the second chart. however my problem is this:
the code of the stop is WT_ZZ(0.7,14,0) which as you can see in the attachment is the same as the indicator setting
however the movement of the stop is not using the same settings, its clearly taking differennt parameters

is this a bug?
could somebody please verify

[Edited by John Crowley on 6/18/2016 2:01 AM]

Attached file : WT settings.JPG (83KB - 437 downloads)

Deleting message 26149 : RE: Unique trailing stop


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