Hi Dark_Trader, i tried to figure out what you want to do with your script and adjusted your code and added some comments, I hope this gets you headed in the right direction! Best of luck! :cool: //This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/...
Hi Tajus, In your example, you would first need to know how many bars back the last crossunder (and crossover) happened. For this you can use the builtin "barssince" function. If you know that for example the last crossunder happened 7 bars ago, you can paste that value to the builtin "lowest" funct...
Hola Chuti, Bienvenidos a pinescripters! :) How is life in Chile? (My father is actually from Chile but i was never there, i hope to visit one day) Anyway, I think you came to the right place if you want to learn how to code and Matt is an awesome resource for everything pine connected! Best of luck...
Hi smaphead, I believe these references can help you: https://www.tradingview.com/chart/?solution=43000481368 https://www.tradingview.com/blog/en/our-new-alerts-allow-for-dynamic-messages-22588/ From your code, the "alert_message" from strategy.entry() is just plain string, nothing to substitute the...
Hi Traders & Coders, I think it would be awesome to have a folder structure for personal pine scripts. Once you have a certain amount of scripts, it is kind of a hassle to keep an overview and the scripts organized. It would be very helpful to be able to structure them into folders (e.g. "Strategies...
Hi Matt,
that is freaking awesome, i love that it even takes the exchange rates into consideration, thank you so much for sharing!
I will definitely try this out once i have a strategy i feel comfortable with.