Skip to main content

Posts

Showing posts from October, 2021

Source Code - How To Convert Amibroker's ExRem and Flip Functions to TradingView Pinescript?

Source Code of How To Convert Amibroker's ExRem and Flip Functions to TradingView Pinescript? Related links Link to the blog post Source Code A Little Favor From You 😅 Since I give everything for free in this blog, please have time to support the blog by following or subscribing to some of my social media accounts: 👉 Youtube Channel 👉 Blog

How To Convert Amibroker's ExRem and Flip Functions to TradingView Pinescript?

 How To Convert Amibroker's ExRem and Flip Functions to TradingView Pinescript? First, before we can convert ExRem and Flip Functions to TradingView Pinescript, we need first to understand what they do. We are very lucky since Amibroker has good documentation. ExRem -  http://www.amibroker.com/guide/afl/exrem.html Flip -  https://www.amibroker.com/guide/afl/flip.html ExRem So what does the ExRem function in Amibroker does? In simple terms, ExRem removes excessive signals. ExRem accepts two parameters: series1 and series2 . ExRem(series1, series2)  ExRem returns true on the first occurrence of series1 then it returns false until series2 is true even if series1 is true. It sounds confusing but I can explain it better with pictures. So for example we have a chart with sets of buy and sell signals: So if we use: buy = ExRem(buy, sell) sell = ExRem(sell, buy) What will happen is ExRem will remove the se