Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.
-
Content Count
4075 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Calendar
Articles
Everything posted by Tams
-
you will need to take a course... most brokerage have online seminar some are live, where you can ask questions. look up thinkorswim and interactivebrokers they are the 2 biggies... ie most likely to have lots of newbie resources. yes, you do get the money, and yes, you can't use any of it because it will be use for margin. yes... you can buy back your option at anytime, at whatever the prevailing market price. p.s. options is a very technical game... there are traps everywhere... things that you have never heard of before can hurt you real bad. (I mean real bad!) my suggestion is to read a book, and TAKE A COURSE...
-
You did not say WHY this is plotting correctly. What is your criteria that makes it "correct"? What should the chart do if the criteria is not met ??? What about the "incorrect" plot? What is your criteria it did not make that renders it "incorrect"? What should the chart do if the criteria is not met ??? You might have described your codes in one post or anther, but don't expect people to look for that section of code... because that code is "wrong"... it is not producing the effect you want, how can people match that section of code to this picture???? I see lots of lines... do you know which line is which? Do you know what variables you are evaluating against which? I don't. Can you see that your thoughts are not cohesively articulated and the logic description are incomplete? Computers are dumb. They can only do what you tell it to do. If your logic is incomplete, so is the computer's action. If you are looking a solution... this is the place you really have to make an effort to cover all the bases... So far I only see you swimming around in shallow water...
-
Shifted (EasyLanguage) http://www.traderslaboratory.com/forums/f46/shifted-5949.html
- 4385 replies
-
this chart illustrates the data1 and data2 application differences. the resultant calculations are the same, but the visual presentation is different. Here's the code for data2 application. note that you should not use FC functions when calculating secondary data. inputs: Price( Close data2 ), Length( 9 ); variables: MA( 0 ) ; MA = Average( Price, Length ) ; Plot1( MA, "Avg" ) ;
-
EXACTLY !!! What I have created is the FUNCTION The indicator is for demonstration only. When writing your own indicator... you can put any variables you like for the rectangle coordinates. The rectangle size and position can change with every tick and every bar as the market unfolds.
-
Search All Posts Does Not Return All Posts
Tams replied to TrueBalance's topic in Announcements and Support
I guess all the silly things I said when I was young will remain secret... -
when the going gets tough, the tough goes shopping...
-
"Lies, damned lies, and statistics" Benjamin Disraeli "There are three kinds of lies: lies, damned lies, and statistics." Mark Twain
-
everyday is an easy day... if you pay attention to the volume. p.s. did you see the pkv?
- 4385 replies
-
Yes, Dubai was always a bubble. They have little oil, little of anything... yet they made it big and opulent. It will be interesting to see how things unfold...
-
I agree that he did a reasonable job of trying... especially posting his work-in-progress. (I give credit to that... some people are too shy to post) If he had written out his thoughts one line at a time in this format: IF... THEN... ELSE... he would have avoided the error. p.s. I think he had solved the problem already... This is a simple bug, you have given him the clue he needed. it is not that difficult to spot the fault once he thinks it through. In an anonymous forum, some people just don't have the habit of acknowledging help.
-
the problem is... most wishful thinkers write in mumble jumbles... writing out their fantasy is easy, but until people can write out their "wishes" one thought/one line at a time... the codes will be mumble jumble too. I have yet to be proven wrong on that. ;-)>
-
that's why I insist on people writing out their thoughts, instead of jumping into coding immediately. I really don't care if he solved the problem... some people only want a quick fix. As far as I am concerned, the "problem" is not in the logic.
-
p.s. isn't that the same spade and pick used for the vegetable garden?
-
now now now... that's hardware the op asks for soft
-
no I don't.... nor do I program as employment.
-
Dubai shock after debt standstill call http://www.ft.com/cms/s/0/46b4065c-d9f7-11de-b2d5-00144feabdc0.html this can be worse than the subprime bust.
-
I think it has to do with the Auto-Detect on MaxBarsBack. I will look into it further over the weekend.
-
it's only numbers. if you can imagine it, you can code it.
-
on the maxbarsback, turn off the Auto-Detect and use User Specified period. It solved one of my code misbehaviors. I haven't tested your code yet.
-
here's how it looks: if you don't want to see the original RSI plot, you can delete it from the code, or simply set it to invisible on the chart.
-
Here's the modified code. note the added input, variables, calculation, and plot statements. (you should save this code under a different name, so that you do not ruin the original RSI code) // Smoothed RSI // modification by TAMS // date: 20091126 // inputs: Price( Close ), Length( 14 ), Smooth.Length( 3 ), { <--- NEW } OverSold( 30 ), OverBought( 70 ), OverSColor( Cyan ), OverBColor( Red ) ; variables: MyRSI( 0 ) , Smoothed.RSI( 0 ) ; { <-- NEW } MyRSI = RSI( Price, Length ) ; Smoothed.RSI = Average( MyRSI, Smooth.length); { <-- NEW } Plot1( MyRSI, "RSI" ) ; Plot11( Smoothed.RSI, "Smoothed.RSI" ) ; { <-- NEW } Plot2( OverBought, "OverBot" ) ; Plot3( OverSold, "OverSld" ) ; { Color criteria } if MyRSI > OverBought then SetPlotColor( 1, OverBColor ) else if MyRSI < OverSold then SetPlotColor( 1, OverSColor ) ; { Alert criteria } if MyRSI crosses over OverSold then Alert( "Indicator exiting oversold zone" ) else if MyRSI crosses under OverBought then Alert( "Indicator exiting overbought zone" ) ; { ** Copyright (c) 1991-2003 TradeStation Technologies, Inc. All rights reserved. ** ** TradeStation reserves the right to modify or overwrite this analysis technique with each release. ** }
-
if you read the code line by line, you will see this: MyRSI = RSI( Price, Length ) ; the RSI is calculated, and the data is saved in the variable MyRSI. to average out the data, all you have to do is add: Smoothed.RSI = average( MyRSI , Smooth.length); same deal for weighted average or exponential average... or whatever data modifying calculation you want to make. .
-
can you post the code? p.s. use the code tag to wrap the code. That's the # icon at the top of the reply window.
-
I tried your code in MultiCharts, I am getting weird results as well. I remember reading about similar problems before, I have to look up the answer/solution.