A very informative video and with my 7 months experience of forex trading and one thing I can assure is having a mentor or a tutor constantly guiding and teaching you can go a long way in making you successful.
I trade with Con. Edwin Earl because I believe he has the best trading pattern, honestly I feel he is the finest out there. You can reach him at consultedwinearl@gmail com
Much appreciated it! I love that you speak fast, write a simple logical script and show the process. Something that some other videos take an hour to do and I don't have patience for it. Thanks so much!
thanks for this. you showed us the general view of backtesting. it would be nice if you could also show us the "EFFECTIVITY of the STRATEGY" like focusing on the success and effectiveness - GAINS vs LOSS as this is the main reason why we're backtesting
Of course great video. I haven't seen many like this one. On the other hand. It adds to my feeling of an overwhelming amount of backtesting work. I would estimate at present I have 3 years of backtesting to do. This just adds even more work.
I enjoyed this video very much, I have been struggling to learn MT4/MQL4, so I decided to go with Pine/TradingView instead and great videos like this one are one of the reasons why! Plus I am also learning JS so Pine is very easy to pick up Thank You
You have next level skills! Thanks so much for all the quality content! Maybe you or someone on here can point me in the right direction. Is there a way to split consecutive similar signals in order to alert them separately in Pine? My study script spits out 3 consecutive similar buy signals and I would like to add an alert separately to each to pyramid my orders via alert automation. So... in short I would like to buy bigger on each similar signal in a study script. Any help would be greatly appreciated.
Very nice video sir., Sir How can we add RSI, MACD and SMA together . Look should be same as we add each one by one. But if I want all on one click what can we do..?
It's a great totorial. I say that as a professional software developer. You should in fact consider going to udemy (if thats any profitable in general). The instructors there are quite good and you seem to be able to keep up.
Good one I was waiting to see if you noticed that the signal was not showing on the chart because you were on 2014 when the signal did not start until 2015. 😁👍
Hey man, are you interested in automating your backtest in thousands of different settings without effort? I have developed a software and I'm giving away first trials for free.
Hi, i would like to know how to do this transactions in real time with the paper account and viewing each one trade on the label of the paper trading? Do you know how to do this? Thank you
please create more strategy testing videos, and kindly advise from where I can learn pine script, Thanks !
4 роки тому+1
cant find a way to check if the price = last 2 days high/ low trying this: strategy("2 day high low", overlay = true, calc_on_every_tick=true) long = crossover(lowest(2)) sell = crossover(highest(2)) strategy.entry("Long", strategy.long, 35, when = long) strategy.close("Long", when = sell)
Thanks much! I wanted to learn MA cross pine script and you certainly did that! Now I need to find out how to change the data periodicity from daily to weekly in pine script. Does anyone know how?
Hello sir, will you please create a video which explains how to work with sessions(Intraday , Weekly or Monthly) Example-Suppose I have a pine script,but I want it to run only when "DAY SESSION STARTS" . How to code it with pine script? Thanks in advance👍
Hi Dennis .. thanks a ton for this information. I have one question I have created my code and wants to show sell alert when candle closes below emi .. and buy alert when candle closes crossing ema line. Please please help
Hi, i try to make a crossing ema strattegy, but i want to buy and sell just exactlly when the crossing ema happen, not in the open or close of the candle. It is anny way to calculate at real time the value of each ema and place the order exactlly when the crossing ema happen? Also i want to make it possible to view it and prove it on simulated strategy. Please help me. Thanks.
Super good!! If you wanna combine like an EMA strategy and set a condition like if ema4 >= sma6 "and macd = green" or something? I found this but can't make it work: macd = macd(close, 12,26,5) where macd color = color.green. I have an EMA+SMA strategy and wanna include like if my MACD is in green (I added the last one to 5 instead of 9 for a bit faster). Want to make it work.
This is my code so far, Daily chart: ema4 = ema(close, 4) sma6 = sma(close, 6) macd = macd(close, 12,26,5) long = ema4 > sma6 //here I want to add something like: when macd color = color.green or made a cross short = ema4 < sma6 start = timestamp(2017,9,1,0,0) end = timestamp(2021,6,24,0,0) if time >= start and time
Sir, I want to code for a candlestick color i.e. if candle's real body is less than 50% of entire range/body of candle then that candle's color should be blue Plz help me to do it.
Hi Dennis. Thanks for this. I already have script written by a developer but I cannot work out how to use the script to backtest on BTC, ETH, SOL, BCH, BNB, etc. Please could you help?
Hey Dennis, won't this strategy open a trade every time one EMA is above the other, not only on the crossing? How can we make it only on the crossover? Thanks
Hello I have no experience of coding in pine. I want to test a strategy where long condition is go long if the highest of the last three candles is crossed and go short if the lowest of the last three candle is crossed. Tine= 1 hourly chart
Dennis Hi, Really great content and thanks for posting, I keep getting this error (Add to Chart operation failed, reason: Could not find function or function reference hma) I tried changing the reference to ema like yours but still get the error? I will take it up with tradingview but I thought I'd give it a shot in this forum. Any help would be so awesome and thanks! Paul
¨Add to Chart operation failed, reason: Script could not be translated from: null¨ i wrote the exact same code as you. But then pops up this Info, Error.
Greetings brother, very grateful for sharing your knowledge with the rest of us ... I confess that I have only been getting to know pine, but I have stalled in one detail and it is frustrating me not being able to continue ... I need to do a kind of trigger ... imagine an indicator that reached a value x, and returned ... an rsi for example, reached level 70 and returned, but I am interested in maintaining that record, something like SignalSale = 1 if rsi exceeds level 70 and that when it falls below 70 the value of SignalSale remains = 1 ... I would greatly appreciate some guidance
How is it going 1 year later? are you still into pine script and has it added value to your trading? i am a beginner and i have been learning for 1 week now
It's a good feature but i somehow find this not well controlled, like you cannot backtest of the close condition happens at candle close or at the highest profit or exactly at a percentage profit
Hi mate thanks for the video, I followed your example to learn but I'm getting an error when I add to chart that states undeclared identifier longcondition and undeclared identifier shortcondtion not sure what i did wrong?
A very informative video and with my 7 months experience of forex trading and one thing I can assure is having a mentor or a tutor constantly guiding and teaching you can go a long way in making you successful.
Trading can really be frustrating without constant supervision especially if you are newbie.
Constant research is also necessary if you want to be an independent trader.
Luigi Baldo I am also inexperienced can you tutor me or who do you trade with?
I trade with Con. Edwin Earl because I believe he has the best trading pattern, honestly I feel he is the finest out there. You can reach him at consultedwinearl@gmail com
It is all about having an experienced person with all the qualities to instruct you.
Much appreciated it! I love that you speak fast, write a simple logical script and show the process. Something that some other videos take an hour to do and I don't have patience for it. Thanks so much!
Dennis... THANK YOU. Great video. You covered major points, and fast! Much obliged.
Finally a decent video on the topic. Great content dude!
Great video! Thank you for keeping everything simple and concise!
Thank you. I just started pine script today (but with a fair bit of previous programming experience). Your video was really clear and helpful!
Dude, you are so clear and explain things like crystal water, been looking for this kind of tutorial for ages, I’m subbing 🙂
Just came across your video today, great help to get started! Thanks for sharing!
thanks for this. you showed us the general view of backtesting. it would be nice if you could also show us the "EFFECTIVITY of the STRATEGY" like focusing on the success and effectiveness - GAINS vs LOSS as this is the main reason why we're backtesting
the way code was explained and fine tuned ,was easy to follow
Great intro to backtesting in TradeView with PineScript Editor.. Very clear. Thank you.
Thanks Dennis!! Awesome contents! I programmed my first pine script within an hour.
Did you used it?
Modern and relevant information, straight to the point, thank you very much Im so glad I found your video
ok #notarobot
@@BroScro thank you for your comment, indeed I am not a robot, I am a man
Excellent video, thanks for sharing, it includes some of the main points I was looking for, all this sounds now less overwhelming.
Wow the exact strategy I am looking into....what a find!
Very clear! Thanks for the introduction!!
Finally i completed my indicator. Thank you so much! Subscribed.
bravo
Best guide on pine scripts. Thanks
Of course great video. I haven't seen many like this one. On the other hand. It adds to my feeling of an overwhelming amount of backtesting work. I would estimate at present I have 3 years of backtesting to do. This just adds even more work.
This was incredibly helpful. I'm going back in to see what the 1000.0 Contracts in the settings #23 & 24 represent.
Thanks! That was simple and easy to understand. Transforming your strategy in code requires more tinkering though.
I enjoyed this video very much, I have been struggling to learn MT4/MQL4, so I decided to go with Pine/TradingView instead and great videos like this one are one of the reasons why! Plus I am also learning JS so Pine is very easy to pick up
Thank You
Concise and neat explanation. thanks for sharing
This is an amazingly informative video, thanks so much!
Excellently done.
Great tutorial. Thank you so much for making this!
This is awesome! Thank you for sharing your knowledge
Very interesting, thanks for making this
Hi! It shows error " could not find function or function reference 'sma'. I put ema, ma but it shows same error. Please help me.
You have next level skills! Thanks so much for all the quality content! Maybe you or someone on here can point me in the right direction. Is there a way to split consecutive similar signals in order to alert them separately in Pine? My study script spits out 3 consecutive similar buy signals and I would like to add an alert separately to each to pyramid my orders via alert automation. So... in short I would like to buy bigger on each similar signal in a study script. Any help would be greatly appreciated.
this was amazing, thank you for this
Hey Dennis, this tutorial is EXTREMELY helpful. Thank you.
Did you used it, if yes can you give me code, bcz I have tried it's unable to compile the code so plz give me code if you have plz
This is fantastic. Thanks, from 2020.
great and simple video.. time to write some serious code
Great video
Quick and dirty, just like I needed it. Ta.
good job mate!
Very nice video sir., Sir How can we add RSI, MACD and SMA together . Look should be same as we add each one by one. But if I want all on one click what can we do..?
It's a great totorial. I say that as a professional software developer. You should in fact consider going to udemy (if thats any profitable in general). The instructors there are quite good and you seem to be able to keep up.
I keep gettig "no data" when i run the initial code and help ?
Good one I was waiting to see if you noticed that the signal was not showing on the chart because you were on 2014 when the signal did not start until 2015. 😁👍
Hey man, are you interested in automating your backtest in thousands of different settings without effort? I have developed a software and I'm giving away first trials for free.
Here's the simple backtest.
//@version=4
strategy("Moving Average Crossover")
ema20 = ema(close, 20)
ema50 = ema(close, 50)
long = ema20 > ema50
short = ema20 < ema50
strategy.entry("long", strategy.long, 1000.0, when=long)
strategy.entry("short", strategy.short, 1000.0, when=short)
Thank YOu!
Thank you very much! :)
very well explained. thank u!
Great video bro thanks so much.
Great tutorial, thanks a lot.
Thanks!, simple and direct 👍🏻
Loved it!
great content
Hi, i would like to know how to do this transactions in real time with the paper account and viewing each one trade on the label of the paper trading? Do you know how to do this?
Thank you
Paper trading and strategy testing are 2 completely different functions.
please create more strategy testing videos, and kindly advise from where I can learn pine script, Thanks !
cant find a way to check if the price = last 2 days high/ low
trying this:
strategy("2 day high low", overlay = true, calc_on_every_tick=true)
long = crossover(lowest(2))
sell = crossover(highest(2))
strategy.entry("Long", strategy.long, 35, when = long)
strategy.close("Long", when = sell)
Thanks much! I wanted to learn MA cross pine script and you certainly did that! Now I need to find out how to change the data periodicity from daily to weekly in pine script. Does anyone know how?
This is what i need
Hello sir, will you please create a video which explains how to work with sessions(Intraday , Weekly or Monthly)
Example-Suppose I have a pine script,but I want it to run only when "DAY SESSION STARTS" . How to code it with pine script?
Thanks in advance👍
Great Video!! Can you help me to understand how can we run a strategy over a list of stock?
Super helpful! 🙏👊👊
Great¡¡¡¡ very helpful
Simple and amazing video.
But how to code to close position at end of the day?
Very helpful!
Hi Dennis .. thanks a ton for this information. I have one question I have created my code and wants to show sell alert when candle closes below emi .. and buy alert when candle closes crossing ema line. Please please help
Much obliged.
Hey dennis, first of all.. Thanks for this great video ! I was wondering if this pine coding gives signal in realtime or just used for backtesting
Thanks a lot!
Hi, i try to make a crossing ema strattegy, but i want to buy and sell just exactlly when the crossing ema happen, not in the open or close of the candle. It is anny way to calculate at real time the value of each ema and place the order exactlly when the crossing ema happen? Also i want to make it possible to view it and prove it on simulated strategy. Please help me. Thanks.
i want to do algo trading from the strategy which i build in trading view ........how should i do....
Super good!! If you wanna combine like an EMA strategy and set a condition like if ema4 >= sma6 "and macd = green" or something?
I found this but can't make it work: macd = macd(close, 12,26,5)
where macd color = color.green. I have an EMA+SMA strategy and wanna include like if my MACD is in green (I added the last one to 5 instead of 9 for a bit faster). Want to make it work.
This is my code so far, Daily chart:
ema4 = ema(close, 4)
sma6 = sma(close, 6)
macd = macd(close, 12,26,5)
long = ema4 > sma6 //here I want to add something like: when macd color = color.green
or made a cross
short = ema4 < sma6
start = timestamp(2017,9,1,0,0)
end = timestamp(2021,6,24,0,0)
if time >= start and time
Sir, I want to code for a candlestick color i.e. if candle's real body is less than 50% of entire range/body of candle then that candle's color should be blue
Plz help me to do it.
Broker: you wanna buy or sell ?
Trading view code : yes
the trades arnt showing cause you set the dates to 2015 to 2019 and you are zoomed into 2013..
But SPX is only options. Mostly 0DTE expiry. Any idea on how to implement that?
what versoin of pine editor are you using? ema is giving me an error. ta.ema instead?
if you use version 5 it is ta.ema, in version 4 it is ema.
Hi Dennis. Thanks for this. I already have script written by a developer but I cannot work out how to use the script to backtest on BTC, ETH, SOL, BCH, BNB, etc. Please could you help?
Can you suggest me how to backtest a single moving average accuracy on list of stocks in tradingview
How do i calculate a particular candles high/low example 5th candle ? of a particular session
thank you so much for the video
Are you on the highest tier subscription of TV? Because me it only lets do like 4 monhts back.
thnx bro. i want to learn pine script pls suggest any channel or videos. Thnx again
hi, your work is smart. is it possible to copy and paste the script in here?
Hey Dennis, won't this strategy open a trade every time one EMA is above the other, not only on the crossing? How can we make it only on the crossover? Thanks
crossover(fastema, slowema)
Hello I have no experience of coding in pine. I want to test a strategy where long condition is go long if the highest of the last three candles is crossed and go short if the lowest of the last three candle is crossed. Tine= 1 hourly chart
written:
Line 13 if time >= start and time
What do you type or omit if you do not want to go short?
Dennis Hi,
Really great content and thanks for posting,
I keep getting this error (Add to Chart operation failed, reason: Could not find function or function reference hma)
I tried changing the reference to ema like yours but still get the error?
I will take it up with tradingview but I thought I'd give it a shot in this forum.
Any help would be so awesome and thanks!
Paul
Great!
But was this video in a lower resolution than expected or is it just me?
I had the same problem lol
Should this work with basic free account? In mine it says to go on pro account when pressed add to chart
why use closeshort for closing long position and vise versa?
¨Add to Chart operation failed, reason: Script could not be translated from: null¨
i wrote the exact same code as you. But then pops up this Info, Error.
hi, the last order was still open. how can we close all position at the last trade? thanks.
Thanks chief
Greetings brother, very grateful for sharing your knowledge with the rest of us ... I confess that I have only been getting to know pine, but I have stalled in one detail and it is frustrating me not being able to continue ... I need to do a kind of trigger ... imagine an indicator that reached a value x, and returned ... an rsi for example, reached level 70 and returned, but I am interested in maintaining that record, something like SignalSale = 1 if rsi exceeds level 70 and that when it falls below 70 the value of SignalSale remains = 1 ... I would greatly appreciate some guidance
How is it going 1 year later? are you still into pine script and has it added value to your trading? i am a beginner and i have been learning for 1 week now
Hello. When setting commission as percentage, does it charge commission when both entering and exiting trade, or entering only?
It charges commission on trade entry and trade exit just like live trading
It's a good feature but i somehow find this not well controlled, like you cannot backtest of the close condition happens at candle close or at the highest profit or exactly at a percentage profit
Moo
Hi mate thanks for the video, I followed your example to learn but I'm getting an error when I add to chart that states undeclared identifier longcondition and undeclared identifier shortcondtion not sure what i did wrong?
It was spelling mistakes sorry, how would you use this as an indicator that is alterable?
thank your sharing
thankyou so much
❤️❤️
Nice sir, but how to code base on % profit taking i mean, how to create strategy using 1 risk 2 reward and money management too
Thank you Bro!