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.


  Current location        Thread information  
OmniTrader Upgrade Forums
Plug-ins for OmniTrader
modify this system of catch a wave
Last Activity 9/18/2024 6:18 AM
6 replies, 1756 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
panetmoto

Member

Posts: 11

Joined: 1/15/2018
Location: visalia

User Profile
 
Subject : modify this system of catch a wave
Posted : 4/17/2022 8:56 PM
Post #48623

Been trying to get the long and short signals to plot when the ema9 crosses above the pricetrend line for long and crosses below pricetrendline for short pic and text to follow , Seems limited in getting coding help on these forums
#System



dim s as string

s = cstr(c[1])

If (CAW_ZZ(2.5,14) > 0 and CAW_ZZ(2.5,14)[1] < 0 ) then
PlotText("WTChange", C-(2*ATR(14)), s)
Plotpricetrendline( "Level", BAR, close, BAR+10, close, red, 3)

signal=shortsignal

Else If (CAW_ZZ(2.5,14) < 0 and CAW_ZZ(2.5,14)[1] >0 )then
PlotText("WTChange", c+(2*ATR(14)), s)
PlotPriceTrendLine( "Level", BAR, close, BAR+10, close, blue, 3)
signal=longsignal
end if

Attached file : 4-17-2022 6-53-13 PM.jpg (212KB - 193 downloads)

^ Top
Barry Cohen

Sage
5000100010010010025
Posts: 6338

Joined: 1/19/2004

User Profile
 
Subject : RE: modify this system of catch a wave
Posted : 4/18/2022 8:59 AM
Post #48625 - In reply to #48623

Help with OmniLanguage is best found on the Pro forum, but I guess you posted there too.

https://www.omnitrader.com/currentclients/proforum/thread-view.asp?threadid=8043&posts=14
^ Top
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: modify this system of catch a wave
Posted : 4/18/2022 10:05 AM
Post #48627 - In reply to #48625

Yes he did. And I posted several times in reply to him. The problem is that he is not clearly describing what he wants. And he apparently is unwilling to experiment with the code, even when solutions are provided. I wasted my time trying to help - and when he re-posted here, he didn’t even include the mods I suggested to convert it to a System.

Useful Guidance to OT users:
Don’t mess around with OLang coding unless you are willing to test and fiddle and Learn For Yourself. People are willing to help in these forums but you need to *clearly* describe what you want, and use correct terminology.

[Edited by Jim Dean on 4/18/2022 10:09 AM]

^ Top
panetmoto

Member

Posts: 11

Joined: 1/15/2018
Location: visalia

User Profile
 
Subject : RE: modify this system of catch a wave
Posted : 4/18/2022 10:39 AM
Post #48628 - In reply to #48623

I messed with this all weekend , i posted several screen shots and the code.I am willing to pay someone to help. By the time 8 emails were exchanged a simple phone call with a screen share would've sufficed. I am grateful for the help from Jim , but to be 100 percent honest starting price of 500.00 for this seems way off. The pics clearly defined what was needed and any programmer could see for themselves what the code was doing. its not 600 lines of code
^ Top
Jim Dean

Sage
20001000
Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: modify this system of catch a wave
Posted : 4/18/2022 10:56 AM
Post #48629 - In reply to #48628

I do not take on small private custom projects. That’s why my minimum development fee is $500, to discourage people from making requests of this nature. I help many people with small projects for free, in public forums.

Unfortunately I’ve discovered, after 5 decades of programming, that the more difficult and exasperating part of the process is figuring out what the client wants. Too often, the client expects the programmer to read minds.

And too often, the client expects to get something for nothing.
TANSTAAFL.

I’ve gone to extraordinary lengths, creating an entire free TradeTight.org website, with thousands of informative entries, to “fill in the educational gap” for the OT community, regarding how to LEARN about OmniLanguage, and providing hundreds of examples.
Countless times, I’ve worked from people’s requests to create solutions for free, on that site and also here. But I draw the line when there is a communication barrier, or when the person refuses to cooperate.

And btw - “gratitude” is not expressed by criticism.

[Edited by Jim Dean on 4/18/2022 11:04 AM]

^ Top
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)


^ Top
panetmoto

Member

Posts: 11

Joined: 1/15/2018
Location: visalia

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

100 percent exactly what i needed, it looks perfect thanks Ryan so much. pics clearly stated what was needed and you nailed it
Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


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