OmniTrader Forum OmniTrader 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.

 
Ryan Olson

Veteran
100100
Posts: 213

Joined: 10/9/2006
Location: Austin

User Profile
 
Subject : RE: modify this system of catch a wave
Posted : 4/18/2022 4:48 PM
Post #48630 - In reply to #48623


panetmoto-

I think I get what you are looking for - some of this was a bit confusing as PlotPrice is only a visual plot however, since it was using the close price of the “Color Change” bar, we simply need to store that in a variable to be used later.

Hope this helps.


#system

#Param "Extend", 3
#Param "Periods", 9
dim level as single
dim s as string

s = cstr(c[1])

if CAW_ZZ(2.5,14) = -1 and CAW_ZZ(2.5,14)[1] = 1 then
level = C
PlotPriceTrendLine( "Level", BAR, Close, BAR+Extend, close, blue, 3)
End if

If CAW_ZZ(2.5,14) = -1 and EMA(Periods) > level and EMA(Periods)[1] < level then
PlotText("WTChange", C-(2*ATR(14)), s)
Signal = LongSignal
end if

if CAW_ZZ(2.5,14) = 1 and CAW_ZZ(2.5,14)[1] = -1 then
level = C

PlotPriceTrendLine( "Level", BAR, Close, BAR+Extend, close, blue, 3)
End if

If CAW_ZZ(2.5,14) = 1 and EMA(Periods) < level and EMA(Periods)[1] > level then
PlotText("WTChange", C-(2*ATR(14)), s)
Signal = ShortSignal
end if

Plotprice("EMA", EMA(Periods), blue, 3)


Deleting message 48630 : RE: modify this system of catch a wave


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