help me Converting pine script to afl

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #135146 quote
    swapnilpekamswapnilpekam
    Participant
    New

    //@version=1
    //Defining Title and Name of Pine Script
    study(“Explosive Candles”, overlay=true)

    //————————————————————-
    // Script for Boring Candles
    // Part 1: taking user input
    // Part 2: Defining Variable and performing calculation
    // Part 3: giving BLUE color to candle based on calculation
    BcB_Ratio = input(60, title=”Boring Candle Body <=(%)”,minval=5, maxval=95)
    C2BR=(abs(open-close)*100/abs(high-low))

    //————————————————————-
    // Script for Explosive Candles
    // Part 1: taking user input
    // Part 2: Defining Variable and performing calculation
    // Part 3: giving BLUE color to candle based on calculation
    mp = input(1.5, title=”Multiplier for Explo.Mov.”,type=float)
    ratio = input(60, title=”Range-Body Ratio for Explo.Mov.”)
    cand = input(100, title=”Average Number of Candles for Explo.Mov.”)

    range = atr(cand)
    candr = abs(high-low)
    bodyr = abs(open-close)

    barcolor((bodyr/candr)>=ratio/100 and candr>=(range*mp) ? black:na, title=”Explosive Move”)

    #135174 quote
    NicolasNicolas
    Keymaster
    Legend

    We do not provide afl coding in our forums. Our website is dedicated to ProRealTime trading platform: https://www.prorealtime.com

    #135181 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    For conversions other than to PRT, when it’s possible to make them, you should use this link https://www.prorealcode.com/trading-programming-services/.

    It’s the paid Programming Service available as the first entry in the HELP menu on the upper blue toolbar.

    #135374 quote
    swapnilpekamswapnilpekam
    Participant
    New

    ok thanku

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

help me Converting pine script to afl


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by swapnilpekamswapnilpekam
6 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/08/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...