Search results

  1. K

    Jurik Moving Average AFL for AmiBroker

    Below is my code for Jurik Moving Average. It's an error free interpretation of tradingview pine script into AmiBroker AFL. Though error free and plotting a line, but still it is not functional. How can it be fixed? Please help. _SECTION_BEGIN( "Jurik Moving Average" ); SetBarsRequired( 100, 0...
  2. K

    afl code using JMA (jurik dll)

    function JurikMA(src, length, phase, power) { src = (High + Low + Close)/3; phaseRatio = IIf(phase < -100, 0.5, IIf(phase > 100, 2.5, (phase / 100) + 1.5)); beta = 0.45 * (length - 1) / (0.45 * (length - 1) + 2); alpha = beta ^ power; jma = 0.0; e0 = 0.0; e1 = 0.0; e2 = 0.0; for (i = 1; i <...
  3. K

    Jurik Moving Average

    function JurikMA(src, length, phase, power) { src = (High + Low + Close)/3; phaseRatio = IIf(phase < -100, 0.5, IIf(phase > 100, 2.5, (phase / 100) + 1.5)); beta = 0.45 * (length - 1) / (0.45 * (length - 1) + 2); alpha = beta ^ power; jma = 0.0; e0 = 0.0; e1 = 0.0; e2 = 0.0; for (i = 1; i <...
  4. K

    How do I write this code with the jurik tools

    In the following picture you can notice that the "S= JMA(strsi,5)" is not plotting on lower timeframe chart i.e. 05 minutes or below. How to fix this issue in AmiBroker? I have coded the same thing in Tradingview and it's working just fine. Also, the problem is happening in some scrips, not for all.
  5. K

    Heiken Ashi Filtered Connors RSI

    The following is the AFL code for "Filtered Connors RSI". But it's giving "ERROR 16: Too many arguments". It needs fixes. _SECTION_BEGIN("Filtered Connors RSI"); ma_length = 4; c_length = 3; ud_length = 2; roc_length = 100; rsi_open = crsi( Open, c_length, ud_length, roc_length); rsi_high...
  6. K

    Cumulative Volume Delta in AFL

    Cumulative Volume Delta Histogram Crossover and Cross down the median zero line. I do enter long and short trade according to that on multi-timeframe charts. I use it in confluence with other indicators as required. I keep on riding the trend with trailing stop loss manually. There are three...
  7. K

    Cumulative Volume Delta in AFL

    This code is working just fine. I use 05 min and 15 minute chart in confluence. This AFL script is giving me good results consistently...
  8. K

    Cumulative Volume Delta in AFL

    I found the logic on tradingview "Cumulative Volume Delta" script. I am also in need to know the function necessary to shift histogram base from 0 to 50 in AFL. If you know that, please share. Regards.
  9. K

    Heiken Ashi Filtered Connors RSI

    This CRSI uses Heikin Ashi definitions for ohlc and is filtered using a triple exponential moving average. The pine-script code is as follows - //@version=5 strategy(title="Filtered Connors RSI", shorttitle="Filtered-CRSI", overlay=false, format=format.price, precision=2, timeframe=""...
  10. K

    Initial Balance Overlay

    Hi, following is the code for "Initial Balance Overlay". Though it is plotting, but not properly. Can anyone here please fix the code. Thanks in advance. Regards. _SECTION_BEGIN("Initial Balance"); Today = Day() == LastValue( Day() ); P11 = Param("IB Start Time",091500, 0 , 235959, 1 ) ...
  11. K

    Cumulative Volume Delta in AFL

    I just googled it. Probably from the tradingview. Can you please tell me how to change histogram base 0 to 50 in afl?
  12. K

    AFL for Histogram of price range

    How can I set the base of Histogram to 50 instead of 0 in afl?
  13. K

    Cumulative Volume Delta in AFL

    Fixed it on my own - _SECTION_BEGIN("Cumulative Volume Delta V.1"); X = High - Close; Y = High - Open; Z = Open - Low; A = Close - Low; uw= IIf(C>O, X, Y); lw= IIf(C>O, Z, A); spread= IIf(High!=Low, High - Low, Null); bl= (spread - (uw+lw)); puw= (uw/spread); plw= (lw/spread); pbl=...
  14. K

    Cumulative Volume Delta in AFL

    I am trying to code ""Cumulative Volume Delta" in AFL. My code is as follows - _SECTION_BEGIN("Cumulative Volume Delta"); uw= IIf(C>O, H-C, H-O); lw= IIf(C>O, O-L, C-L); spread= (H-L); bl= (spread - (uw-lw)); puw= (uw/spread); plw= (lw/spread); pbl= (bl/spread); x= (pbl+(puw+plw)/2*Volume)...