Need a little bit of help

Questions about MultiCharts and user contributed studies.
User avatar
ACMilan
Posts: 53
Joined: 08 Feb 2013
Has thanked: 2 times
Been thanked: 2 times

Need a little bit of help

Postby ACMilan » 11 Mar 2019

Hello I was wondering if anyone can help me with this issue
Let's make an example with simple numbers:
If Crude Oil is trading at 55.40 then it goes to 55.39, 55.38, 55.37, then it starts to go up again, 55.38, 55.39 55.40
Once it trades 55.40 again that is when I want the script to generate the Long signal
Basically wait for a pull back and then enter
Can anyone show me how to write that sequence?
Thank you

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Need a little bit of help

Postby TJ » 11 Mar 2019

What is your chart resolution?
The numbers in the example, do you mean bar closes? or ticks?

User avatar
ACMilan
Posts: 53
Joined: 08 Feb 2013
Has thanked: 2 times
Been thanked: 2 times

Re: Need a little bit of help

Postby ACMilan » 11 Mar 2019

Hi
I use Line Break charts and yes bar close and all my trades are Mkt orders by the way
All I want to do is wait and enter the second time around when it reaches the same entry price again
Thank you very much

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Need a little bit of help

Postby TJ » 11 Mar 2019

Hello I was wondering if anyone can help me with this issue
Let's make an example with simple numbers:
If Crude Oil is trading at 55.40 then it goes to 55.39, 55.38, 55.37, then it starts to go up again, 55.38, 55.39 55.40
Once it trades 55.40 again that is when I want the script to generate the Long signal
Basically wait for a pull back and then enter
Can anyone show me how to write that sequence?
Thank you
just program it EXACTLY as you have described it. For example:

Code: Select all


IF C = C[4]
and C>C[1] and C[1]>C[2} and C[2]>C[3]
and C{4]<C[3] . . .
THEN BUY . . .

User avatar
ACMilan
Posts: 53
Joined: 08 Feb 2013
Has thanked: 2 times
Been thanked: 2 times

Re: Need a little bit of help

Postby ACMilan » 11 Mar 2019

Thank you
I will work on after the close
I really appreciate your fast reply


Return to “MultiCharts”