novice07054 26 posts msg #111250 - Ignore novice07054 |
2/10/2013 10:44:36 AM
Quilln,
As always very much appreciate you taking the time of your hectic day & post detail explanations for novices like me. Your generosity is very much appreciated and thank you for the same. We all hope that your family recovers from the issues at the present time.
|
pirate67 99 posts msg #111251 - Ignore pirate67 |
2/10/2013 10:59:19 AM
Quilin, I too want to thank you for sharing the "how" of what you do and answering questions about it. I share the empathy of you and your wife's challenges.
|
springhill 74 posts msg #111252 - Ignore springhill |
2/10/2013 11:21:42 AM
Quilln.
Same goes from here.
Blessing to you on this Sunday morning.
|
springhill 74 posts msg #111253 - Ignore springhill |
2/10/2013 11:28:53 AM
Quilln,
Wondering if you copied the whole script on the scalper buy sell ToS script.
It doesn't seem to like the def triggerSell statement
def triggerSell = if(if(close[-1] < close,1,0) and (close[-2] < close[-1] or close[-3];
def triggerBuy = if(if(close[-1] > close,1,0) and (close[-2] > close[-1] or close[-3] > close[-1]),1,0);
rec buySellSwitch = if(triggerSell, 1, if(triggerBuy, 0, buySellSwitch[1]));
def thirdBarClosed = if(isNan(close[-3]),0,1);
plot SBS = if(triggerSell and thirdBarClosed and !buySellSwitch[1], high, if(triggerBuy and thirdBarClosed and buySellSwitch[1], low, double.nan));
SBS.setStyle(curve.POINTS);
SBS.setPaintingStrategy(paintingStrategy.LINE_VS_SQUARES);
SBS.setLineWeight(2);
SBS.setDefaultColor(color.white);
|
springhill 74 posts msg #111255 - Ignore springhill |
2/10/2013 12:35:25 PM
Quilln,
I went to the think script chat and asked for help. One of the folks there was able to fix it for me.
Had an error in the syntax on line 1. Looks interesting on the plot.. The fixed code is below..
def triggerSell = (if(close[-1] < close,1,0) and (close[-2] < close[-1] or close[-3] ));
def triggerBuy = if(if(close[-1] > close,1,0) and (close[-2] > close[-1] or close[-3] > close[-1]),1,0);
rec buySellSwitch = if(triggerSell, 1, if(triggerBuy, 0, buySellSwitch[1]));
def thirdBarClosed = if(isNan(close[-3]),0,1);
plot SBS = if(triggerSell and thirdBarClosed and !buySellSwitch[1], high, if(triggerBuy and thirdBarClosed and buySellSwitch[1], low, double.nan));
SBS.setStyle(curve.POINTS);
SBS.setPaintingStrategy(paintingStrategy.LINE_VS_SQUARES);
SBS.setLineWeight(2);
SBS.setDefaultColor(color.white);
|
Quilln 116 posts msg #111259 - Ignore Quilln |
2/10/2013 11:22:32 PM
Springhill,
Very interesting and glad you got the ScalperBuySave to work.
I went to the TOS studies and then to the ScalperBuySave and did an edit and the following is what it produced from all those crazy colours.
plot Data = close;def triggerSell = if(if(close[-1] < close,1,0) and (close[-2] < close[-1] or close[-3] def triggerBuy = if(if(close[-1] > close,1,0) and (close[-2] > close[-1] or close[-3] > close[-1]),1,0);
rec buySellSwitch = if(triggerSell, 1, if(triggerBuy, 0, buySellSwitch[1]));
def thirdBarClosed = if(isNan(close[-3]),0,1);
plot SBS = if(triggerSell and thirdBarClosed and !buySellSwitch[1], high, if(triggerBuy and thirdBarClosed and buySellSwitch[1], low, double.nan));
SBS.setStyle(curve.POINTS);
SBS.setPaintingStrategy(paintingStrategy.LINE_VS_SQUARES);
SBS.setLineWeight(2);
SBS.setDefaultColor(color.white);
The first line still has the " =if(if(close[-1]...." but it has a plot data statement in the front.
I guess this answers the question of looking for low and high labels or bubbles with prices with reference to day trading
have fun and see ya around the campus
Best regards,
Quilln-
|
Quilln 116 posts msg #111261 - Ignore Quilln modified |
2/11/2013 12:28:29 AM
Gentlemen,
I and my wife would like to thank you for your prayers and well wishes. Being a Caregiver 24 / 7 is a full time job.
Every morning before the Stock Market bell rings, we do one hour of Physical Therapy (or physiotherapy), often abbreviated PT exercises and one hour of PT exercices after the bell. Went for 8 weeks of PT and Occupational therapy (OT) for the left hand. The left hand had the shakes and was closed fisted. Today, it has opened to 80 pecent. Still have a long way to go.
She was misdiagnosed with Multiple Sclerosis (MS) going back 13 years after getting bit by a Deer Tick. The first 5 years was hell because of the Copaxone injections being taken every day in various parts of the body that I injected into her. Went to see a MS specialist and it was determined that my wife has Parkinson's disease (PD). She is disabled and can't walk or get up under her own power. We have been seeing a PD Specialist. She has nothing like Muhammad Ali or Janet Reno has that the Specialist is treating them.
Juggling Time is the hardest thing to do. We only get about 4.5 hours of sleep every night. Reveille is 7am every day. I do the cooking, shopping, cleaning, bathing, laundry, chauffeuring at times and things I might have missed daily while keeping a kewl head in trying to swing trade / day trade. Time management skills is very hard to master.
Again, we thank you very very much.
Best regards,
Quilln - "In tribute to all who seek to record their ideas and share them with others"
|
pirate67 99 posts msg #111293 - Ignore pirate67 |
2/11/2013 5:54:04 PM
Quilin, your days sound very challenging.Thanks for the TOS script. You mentioned that this Scalper TOS indicator gives a signal four bars late on minute charts. Have you tried using it on day charts? When does the long or short show up? There seems no way of backtesting it because one cannot determine when the indicator showed.
|
tennisplayer2 210 posts msg #111295 - Ignore tennisplayer2 |
2/11/2013 6:42:53 PM
Quilln, you are a man of great character. I will continue to pray for you, your wife, and your family. Please let us know if you ever need anything.
|
novice07054 26 posts msg #111296 - Ignore novice07054 |
2/11/2013 6:56:42 PM
Quilln,
Your willingness to help others inspite of your personal issues & hectic days is very much appreciated. Observed the scalper today on the intraday 1 min chart. It seems like the signals to buy & sell appear only after 3 bars i.e 3 minutes.
|