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.


This message cannot be deleted. It is the first message of the thread.
Administrators or moderators may choose to delete the entire thread


 
Rean

Veteran
100
Posts: 105

Joined: 8/30/2013
Location: Johannesburg, South Africa

User Profile
 
Subject : Trying to make this strategy work - Please help
Posted : 9/11/2024 12:35 PM
Post #48937

I hope someone can assist. The trigger that I am trying to create is the 1st step in my strategy.

Basically, when a heikin ashi candle pulls away from the EMA5 (shifted to the right by 2 positions) a trigger should occur. I then manually drop to a lower timeframe for the rest of the strategy. But, I cannot get the triggers to work, and I think it has to do with the filters, combines with the coding for the EMA5[2].

The filters read as follows:
H[1] > EmaOffsetByTwo() and
L[1] > EmaOffsetByTwo()

Where EmaOffsetByTwo() is a library consisting of ema(5)[2].

I have created a quick indicator called EMAOffset as follows:
"#Indicator

Dim fValue As Single

fValue = EMA(5)[2]
PlotPrice("Value", fValue)

Return fValue"


This chat refers to the EMA Shifted idea:
https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=16576

I'll appreciate any assistance with this.


Attached file : HA Pullaway Trigger.docx (182KB - 125 downloads)

Deleting message 48937 : Trying to make this strategy work - Please help


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