OKX: MA CrossoverEXAMPLE Scripte from my stream , how to use OKX webhooks for create strategy on Pine with real\demo trading on your OKX account. This strategy only for test the functional forward orders to OKX. The backtest not included commisions and other.
OKX MA Crossover. This strategy generate JSONs for place orders on the exchange by alerts and webhooks.
In the script 2 function to generate entry and exit orders, and input parameters that needed for setup exchange.
Use it for test this stack and to write you own strategy for trade on the OKX Exchange.
Hpotter
Combo 2/20 EMA & Average True Range Reversed This is combo strategies for get a cumulative signal.
First strategy
This indicator plots 2/20 exponential moving average. For the Mov
Avg X 2/20 Indicator, the EMA bar will be painted when the Alert criteria is met.
Second strategy
Average True Range Trailing Stops Strategy, by Sylvain Vervoort
The related article is copyrighted material from Stocks & Commodities Jun 2009
Please, use it only for learning or paper trading. Do not for real trading.
WARNING:
- For purpose educate only
- This script to change bars colors.
Adaptive Bandpass Trigger OscillatorThis is based off of Ehler's Bandpass Filter system (link below slides 15-17). I then used Ehler's methods for finding the dominant cycle to automatically input the dominant cycle to the length. Essentially Ehler runs a band pass with a given period to detrend the price data and highlight a cycle with the given frequency(length). This represents the In phase cycle. Ehler then creates the trigger line by taking the one bar momentum of the In Phase line, multiplying by 2Pi and then using this to create a 60 degree leading signal. The triggers are crossovers of the In Phase and Lead lines. You can also use conservative signals by waiting for the In Phase line to trend in the direction of the trigger crossover as well.
Delta represents how much to influence the oscillator by the price (Delta 0 is a perfect wave)
Alpha represents how quickly to adapt between the dominant cycle changes in the price.
Thanks to LazyBear for implementing Ehler's original adaptive code, which I used for this system
Thanks to HPotter for the BandPass Filter code, which I used as a base for implementing the rest of the system
www.mesasoftware.com
Ehler Bandpass Trigger OscillatorThis is based off of Ehler's Bandpass Filter system (link below slides 15-17). Essentially Ehler runs a band pass with a given period to detrend the price data and highlight a cycle with the given frequency(length). This represents the In phase cycle. Ehler then creates the trigger line by taking the one bar momentum of the In Phase line, multiplying by 2Pi and then using this to create a 60 degree leading signal. The triggers are crossovers of the In Phase and Lead lines. You can also use conservative signals by waiting for the In Phase line to trend in the direction of the trigger crossover as well.
Length represent the cycle period you want to highlight.
Delta represents how much to influence the oscillator by the price (Delta 0 is a perfect wave)
Thanks to HPotter for the BandPass Filter code, which I used as a base for implementing the rest of the system
www.mesasoftware.com