Can anyone help convert this pine script to EasyLanguage? - futures io
futures io



Can anyone help convert this pine script to EasyLanguage?


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Kolnidrei with 1 posts (0 thanks)
    2. looks_two Virrat with 1 posts (0 thanks)
    3. looks_3 jmi8844 with 1 posts (1 thanks)
    4. looks_4 muhfayaz12 with 1 posts (0 thanks)
    1. trending_up 7,312 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 2 posts
    2. attach_file 2 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Can anyone help convert this pine script to EasyLanguage?

(login for full post details)
  #1 (permalink)
jmi8844
Chicago
 
 
Posts: 2 since Oct 2020
Thanks: 0 given, 1 received

It seems like its a variation of a channel breakout but having trouble with the exact conversion. Thanks

length = input(30, minval=1)
Value = input(30, minval=0)
highsma = sma(high, length)
lowsma = sma(low, length)
swing = iff(close > highsma[Value], 1, iff(close < lowsma[Value], -1, 0))
mah = highest(high, length)
mal = lowest(low, length)
stop = iff(swing==1, mal, iff(swing==-1, mah, stop[1]))
linecolor = iff(stop < low, green, red)
plot(stop, style=line, linewidth=2, color=linecolor)
len1 = input(1, "Base Length")
src = input(close, "Source")
sma1 = sma(src, len1)
longcondition = crossover(sma1,stop)
shortcondition = crossover(stop,sma1)
plotshape(longcondition, style = shape.triangleup, color = green, location = location.belowbar, text = "Long", size = size.small)
plotshape(shortcondition, style = shape.triangledown, color = red, location = location.abovebar, text = "Short", size = size.small)
alertcondition(longcondition, "Long", "Long")
alertcondition(shortcondition, "Short", "Short")

Reply With Quote
The following user says Thank You to jmi8844 for this post:

Can you help answer these questions
from other members on futures io?
How do I create Strategy with the Second Entry indicator
NinjaTrader
Big Mo Indicator for NT8
NinjaTrader
NT8 Order Management Strategy
The Elite Circle
Market on Close data within IB
Platforms and Indicators
Multi Time Frame High/Low/Median levels
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
123 thanks
ApexTraderFunding.com experience and review
11 thanks
Want your NinjaTrader indicator created, free?
7 thanks
Artificial Intelligence (AI) and Chat GPT
7 thanks
Dax market profile (FDAX, TPO)
7 thanks
 
(login for full post details)
  #2 (permalink)
Kolnidrei
Lyon/France
 
 
Posts: 23 since Aug 2012
Thanks: 1 given, 14 received

hi

 
Code
Inputs:
src(close), //"Source"
length(30, 1),
lookback(30, 0),
len1(1);   //"Base Length"
Vars:
highsma(0),lowsma(0),swing(0),mah(0),mal(0),stopp(0),sma1(0),
longcondition(false),shortcondition(false),linecolor(white);

highsma = AverageFC(high, length);
lowsma = AverageFC(low, length);
swing = iff(close > highsma[lookback], 1, iff(close < lowsma[lookback], -1, 0));
mah = highest(high, length);
mal = lowest(low, length);
stopp = iff(swing=1, mal, iff(swing=-1, mah, stopp[1]));
linecolor = iff(stopp < low, green, red);
plot1(stopp, "stop", linecolor, default, 2);
sma1 = AverageFC(src, len1);  
longcondition = sma1 crosses above stopp;
shortcondition = stopp crosses above sma1;
if longcondition then begin 
value1 = Text_New(D, T, L, "");
Alert( "Long" ) ;
end;
if shortcondition then begin 
value2 = Text_New(D, T, H, "");
Alert( "Short" ) ;
end;
the arrows here should be activated with the wingdings
depending on the software you use...

Reply With Quote
 
(login for full post details)
  #3 (permalink)
muhfayaz12
Pakistan near Afghanistan
 
 
Posts: 1 since Mar 2022
Thanks: 0 given, 0 received


can anyone convert these to easy language script to pine script that i would like be able to use trading veiw

Attached Files
Register to download File Type: docx 3-lines-of-code-SPY-Strategy (1).docx (13.1 KB, 23 views)
Register to download File Type: docx RSI-Thrust-Trading-Strategy-Code.docx (13.6 KB, 17 views)
Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Can anyone help convert this pine script to EasyLanguage?


Last Updated on March 24, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts