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.


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


 
Frank Birch

Veteran
1002525
Posts: 171

Joined: 3/25/2006
Location: UK

User Profile
 
Subject : Stoc and Comms Dec 2HL+Pattern
Posted : 11/28/2023 1:03 PM
Post #32383

Hi to all,

I found some free time so thought why not because i can and code the 2HL+pattern in the December issue of Stocks and Comms.

I read the article then re read it to make sure of the understanding and yes in my eyes its viable on all time frames.
I spent an hour with it on the US big 9 futures on a 60 minute time frame and turned up very profitable.
so ive done a detailed report who doesn't get the Magazine and to download.
save to the omni language systems folder then open omni language to then compile please.

Here's a detailed explanation of the code:

#System

' Main system logic
If C[1] > C[2] And C[2] > C[3] And O > C[1] Then
' If the conditions for a long signal are met, generate a long signal
Signal = LongSignal
ElseIf C[1] < C[2] And C[2] < C[3] And O < C[1] Then
' If the conditions for a short signal are met, generate a short signal
Signal = ShortSignal
End If

C[1], C[2], and C[3] refer to the closing prices of a stock for three consecutive time periods, with C[1] being the most recent and C[3] being the oldest.
O refers to the opening price of the stock for the most recent period.
The code can be broken down into two main conditional checks:

Long Signal Condition:

This part checks whether there is an upward trend in the closing prices over the last three periods (C[1] > C[2] And C[2] > C[3]).
Additionally, it checks if the most recent opening price (O) is greater than the most recent closing price (C[1]). This could indicate a gap up or strong opening, which might be interpreted as a bullish signal.
If both these conditions are met, it sets Signal to LongSignal, indicating that it might be a good opportunity to buy or go long on the stock.
Short Signal Condition:

This part is the opposite of the long signal condition. It checks for a downward trend in the closing prices (C[1] < C[2] And C[2] < C[3]).
It also checks if the most recent opening price (O) is less than the most recent closing price (C[1]). This could be indicative of a gap down or weak opening, which might be interpreted as a bearish signal.
If these conditions are satisfied, it sets Signal to ShortSignal, suggesting that it might be a good opportunity to sell or go short on the stock.

Regards

Frank Birch
Attached file : The2HLplusPattern.txt (0KB - 105 downloads)

Deleting message 32383 : Stoc and Comms Dec 2HL+Pattern


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