Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
how to code a trendline from a moving average cross?
fairly straight forward but giving me trouble, please bear with me, still learning.
how would you code a trend line or tl_new statement to draw a line from a moving average crossing?? then maybe end on subsequent prices of moving averages, or high pivot or current high...
basically i'm having trouble capturing a MA cross for a trend line statement
here is a snippet of code that i've learned for pivots... how would i modify it for ma cross trend lines??
Thanks,
I have approximate answers, possible beliefs and different degrees of certainty of different things. But I'm not absolutely sure of anything and there are many things i don't know anything about.
Can you help answer these questions from other members on NexusFi?
( It is not because I am asking a question that I will have time to code it. So, if somebody else wants to propose a code, do not hesitate! :-) )
Could you clarify what the second point of the trendline is?
I mean:
When there is a MA crossover, you want a trendline to be drawn between this crossover and which point?
Each time there is an EMA crossover, it draws a trendline between:
- the said EMA crossover, and
- the middle of the two EMA at the time of the next swing point.
The arrows identify all swing points (strength = 3), for checking purpose. They could be deleted.
I have done it in 10 minutes, so there may be mistake inside. At least, it is a basis to build from.
nicolas -thats close in some areas and way off in others -the ma cross is the chart i use for pivot trading -if you refer to the original post you will see the setup i use for day trading -close only counts in handgrenades :sos:
:when you cheat -you only cheat yourself
refer to post # 470 & 527 & 930
option traders refer to post 996 thru 1005
I am not very comfortable with the situation and I would like to clarify something. I am not trying to duplicate/code your method, and I will not. Actually, I do not even know what your method is.
The story is...
When I started to work on the original question of @program, it rang a bell. "I have already seen this kind of line originating from MA crossover somewhere...". And I remembered your thread.
I was a bit embarrassed.
Perhaps @program was working on your method. Perhaps not. In any case, I preferred to put you in the loop rather than do things "in your back".
But I do not ask you to comment my work in order to move the code closer to your method. Actually I do not ask you anything. And I do not want to move the code closer to your method. I just wanted you to be informed in case this was in relation with your method. But perhaps it is not.
My purpose was just to answer to @program's original question and I think that I did it. I am ready to make minor modifications if he has additional clear specifications. But I will not go further anyway.
Nicholas- its very nice to meet a person of integrity -and i thankyou for that -no has asked or has been granted and rights to this system - i find it interesting that with all the knowledge on this forum that something new came still show up and work so well ,that any new trader can find success without being bled for his hard earned money to point them in the way of profit so easily -
some think -how can someone put something so important out there -but at 53 years of age maybe its put out there because something easier and better has been found -
but i repeat -no-one has been granted any rights to this system -
i may be a creekboy but i am no kid
:when you cheat -you only cheat yourself
refer to post # 470 & 527 & 930
option traders refer to post 996 thru 1005
Hello all, thanks for the responses...
I absolutely got this from CreekBoy, i was impressed with the simplicity of his system and style. I thought it would be a great exercise for my meager easylanguage ability... It's not my intention to plagiarize his method, just learn, or better my coding from it. I've already mentioned this to CreekBoy, and my lack of progress, with his recommendation to enlist help from Cory.
...but then again i never said/mentioned I wanted to start a thread requesting help.
in retrospect this may be insensitive.
I don't want to ruffle any feathers or step on any toes...
@creekboy you have PM
I have approximate answers, possible beliefs and different degrees of certainty of different things. But I'm not absolutely sure of anything and there are many things i don't know anything about.
just to clarify, It's not my intention to have rights to, or copy, CreekBoy's system... just learn MC Powerlanguage and how trend lines can be drawn from MA crosses or other events for that matter... most trend lines are based off prices in time not events. I found that interesting in CreekBoys system. Apologies for any perceived insensitivity or lack of integrity.
we can lock it up if I've rubbed anyone the wrong way
I have approximate answers, possible beliefs and different degrees of certainty of different things. But I'm not absolutely sure of anything and there are many things i don't know anything about.