Current location | Thread information | |
![]() ![]() ![]() ![]() ![]() ![]() |
Last Activity 9/18/2024 6:18 AM 6 replies, 1756 viewings |
|
|
Printer friendly version |
^ Top | |||
panetmoto![]() Member Posts: 11 Joined: 1/15/2018 Location: visalia ![]() |
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 ![]() | ||
^ Top | |||
Barry Cohen![]() Sage ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6338 Joined: 1/19/2004 ![]() |
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 ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
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 ![]() |
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 ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
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 ![]() ![]() Posts: 213 Joined: 10/9/2006 Location: Austin ![]() |
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 ![]() |
100 percent exactly what i needed, it looks perfect thanks Ryan so much. pics clearly stated what was needed and you nailed it |
|
|
Legend | Action | Notification | |||
Administrator
Forum Moderator |
Registered User
Unregistered User |
![]() |
Toggle e-mail notification |