Price action oscillator

Category: Indicators By: Nicolas Created: September 1, 2017, 12:22 PM
September 1, 2017, 12:22 PM
Indicators
1 Comment

This is a simple price action indicator made for detecting sudden price movement for quick in and out trading (scalping).

You can select the way the signal line is calculated (CalcMethod = different type of moving averages) and on how many periods the price is analyzed (CalcPeriod = 50 periods by default).

Translated from a MT4 indicator.

//PRC_Price Action oscillator | indicator
//01.09.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//translated from MT4 code (author:mladen)

// --- settings
//CalcPeriod   = 50 // Calculation period
//CalcMethod   = 2 // Moving Average type
trad// --- end of settings

Price        = customclose     // Price to use

av = average[CalcPeriod,CalcMethod](Price)
ma = Close+Open-2*av 
av = Open-av
if ma>av then 
 r=50
 g=205
 b=50
else
 r=255
 g=69
 b=0
endif

RETURN av coloured(100,100,100) style(dottedline),ma coloured(r,g,b) style(line,3)

 

Download
Filename: price-action-indicator.png
Downloads: 113
Download
Filename: PRC_Price-Action-oscillator.itf
Downloads: 534
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...