Jump to content

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.

EasyTrader_I

Members
  • Content Count

    75
  • Joined

  • Last visited

Everything posted by EasyTrader_I

  1. HI smurf77, If you need Time Gap between the trades, then you can use Bassinceexit(1) > 5 then...as you have used. But you have to make sure that you have a condition in the entry If Maarketposition = 0 then Buy..... If MarketPosition = 0 then SellShort..... The Bolded words are important, as this will make sure that your entries are neither a stop&Reverse, Not enter immediately. Hope that will help... EasyTrader_I
  2. Hi seaneking, We are bit worried about our Post, You have to make sure what you mean by Is that mean you are not using Tradestation as a Broker? Or you just want to use the Easylanguage alone?If Yes, then You can't. It comes along with platform. Easylanguage code Runs Only for the Tradestation Charts. If you Don't use Charts, then you code is No use.(Please correct me if I Haven't been updated to the latest technology) However you can Do your Entire calculations outside the Platforms using ADE Concepts, Still You need the data in the chart ro run the code. Without scanner you can code macros in EasyLanguage to run through the scripts from a text file, and filters the stocks ... But Still you have to make sure what you mean by Note:- EasyLanguage Doesn't comes as a seperate package. It's an inbuilt functionality of Tradestation Platform. EasyTrader_I
  3. HI Sean, Would I need to be constantly connected for my exit orders to be applied? For instance, in my strategy I've set marketorders to scale off my position automatically with moving average crossovers when things go sour. Will those orders still trigger if I'm not physically connected and my code is not running in front of me or should I place stop orders the old way when I enter a position? If you are disconnected from the Tradestation , then your Market Orders will never be triggered as your code would never run.... If you are using a Stop order, then using advanced Programming (OSO/OCO) you can place the orders directly in the Tradestaiton Server, So no more worry once you have placed, it will trigger for sure. 2. Ideally I'd like to make this a stock scanner of sorts, where it reads all the instruments in a market and shows candidates that have triggered buy signals any time in the past day (last and current bar) for further analysis. Is there some way to achieve that or something similar? Yes, This is possible in Tradestation using Scanner. 3. Lastly, I'm having a bit of trouble with the actual code of my exit strategy. I need to reference a past event and I'm not quite sure how. To make things clearer here's some sample code from my exit, triggering the second scaling off of a position only if the first sell-off has occurred: condition5 = marketorder("1stsell") = -1 where this was the order for the first sell-off: marketorder("1stsell","on ce","account#"...etc.) I'd then set the second exit as: if condition5 and...etc. Can I do that?? It's not clear from your language... However TS takes many exits and will trigger the first one that the Price Hits. And you can have as many condition as you like for a single Exit. 4. Along the same lines I want to set another condition that scales off another portion of of my position (triggered after condition5 above is met) when the value reaches 1.3 times the value at the time of the 1st sale (“1stsell”). So I'd need to somehow reference the price of the shares at the time 1stsell occurred? If that makes any sense... Sorry, Can you bit more clear.. Please PM me if you need any further assistance.. Good Luck, EasyTrader_I
  4. EasyTrader_I

    Inputs

    Hi PiTrader, Please use Tags around your code in future.. Original One:- inputs: Price( (close+low)/2), Length( 7), NumATRs( 1), Displace( 0) ; variables: Avg( 0 ), Shift( 0 ), TL(-1); Avg = AverageFC( Price, Length ) ; Shift = NumATRs * AvgTrueRange( Length ) ; if Displace >= 0 or CurrentBar > AbsValue( Displace ) then begin Plot3[Displace]( Avg, "MidLine" ) ; End; and here it Goes. Modified One:- Variables: Price(0), Length( 7), NumATRs( 1), Displace( 0) ; Variables: Avg( 0 ), Shift( 0 ), TL(-1); Price = (close+low)/2; Avg = AverageFC( Price, Length ) ; Shift = NumATRs * AvgTrueRange( Length ) ; if Displace >= 0 or CurrentBar > AbsValue( Displace ) then begin Plot3[Displace]( Avg, "MidLine" ) ; End; Good Luck. EasyTrader_I.
  5. Hi Mb3000, Paste this code at the end of the Momentum Indicator. Make sure you are making a copy of Original Indicator.. if Mom > 0.5 and Mom <= 0.5 then Alert( "Indicator crossed +0.5" ) else if Mom < -0.5 and Mom >= -0.5 then Alert( "Indicator crossed -0.5" ) ; Also make sure that you have audio alert on in the format Analysis technique-->Alert Tab. Good Luck.. EasyTrader_I.
  6. HI feng2088, To get the intraday Netprofit, you need to have something like this. Var: YesterdayNP(0), IntradayNP(0), NP(0); NP = Netprofit; if Date <> Date[1] then YesterdayNP = NP[1]; If Date = date[1] then IntradayNP = NP - YesterdayNP; Good Luck, EasyTrader_I
  7. Hi Blu-Ray, Can you post it here, so that many will find useful(including me).. Thanks, EasyTrader_I.
  8. Hi chrisleonard, Here is the solution... Uncheck the "Display Plot Value in Status Line, Data Tip, and Data window". This will remove the irrelevent values from your datatip. For reference find the attached snapshot. Thanks, EasyTrader_I. Uncheck DataTip.zip
  9. Hi Pitrader, Have you tried the following? TL_SetColor(TL, Yellow); TL_SetStyle(TL, 3); Good Luck, Easytrader_I.
  10. Hi statsign, To make it simpler, you can try if entriestoday(Date) < x then begin Buy condition Sell Short Condition End; Thanks, EasyTrader_I
  11. Hi laurus12, if "MOMENTU MSmo" is you function, then here is the solution. You cannot have a function with space in between. Make it as "MOMENTU_MSmo". Also Please post as much details as Possible as Tams suggests. That would help others to give you a solution quickly.. Thanks, EasyTrader.
  12. Hi, Do you have the logic behind the twap indicator? EasyTrader_I
  13. Hi jojojo, The Eld files are protected one. Though you are using the Latest version TS9, you wont be able to Open it. You are Not asking to Open it, instead to hack it... You won't be able to Open the Protected files directly from TS...However I heard there are some Crackers (whom I hate) will Open it if you are ready to spend a couple of Hundreds of Dollars. EasyTrader_I.
  14. Hi Tams, You may be correct sometimes, But if you expertise in Tradestaion Programming or any with any other platform, then it doesn't effect though..right? So stoploss/breakeven/profit target will work in a condition only if you code it such a way... Please correct me if I am wrong.. EasyTrader_I
  15. Hi DeadLoss, If you want the Setbreakeven to execute only for the first trade, then you could write something like, if Totaltrades < 1 then setbreakeven(1); Else if you are trying to execute the setbreakeven for all trades But only on condition then you can try this.. if condition99 then setbreakeven(1); //where condition99 is your's Cheers, EasyTrader_I.
  16. HI, If I am guessing you correctly(Name starts with "A"), you have already got this done with easylanguage , and you have issue with making it to work in Zen Trader right? And You have also said that you can import and .ELD to Zen Trader Software.. If that is true, what was the issue with the EL code which you have? Thanks, EasyTrader_I
  17. Hi fufufnik, Try this If LastBarOnChart then Plot1[50](High[50], "High[50]"); EasyTrader_I.
  18. Tradestation EasyLanguage Programmer.

  19. Hi laurus12, Try this code. and Let me know.. inputs: Length( 14 ); variables: MyRSI( 0 ) ; MyRSI = RSI( Close, Length ) ; Plot1( MyRSI, "RSI" ) ; Plot2( 70, "OverBot" ) ; Plot3( 30, "OverSld" ) ; Plot4( 80, "OverBot1" ) ; Plot5( 20, "OverSld1" ) ; //Calcualte RSI Average Inputs: MA_Period1( 34 ), MA_Period2(21), MA_Method1( 0{ 0=SMA, 1=XMA, 2=SmoothedAvg, 3=WMA }), MA_Method2( 0{ 0=SMA, 1=XMA, 2=SmoothedAvg, 3=WMA }); Variables: vApplied_Price( 0 ); vApplied_Price = MyRSI; Var:MyRSIMA1(0), MyRSIMA2(0); If MA_Method1 = 0 then MyRSIMA1 = Average(vApplied_Price, MA_Period1) else If MA_Method1 = 1 then MyRSIMA1 = XAverage(vApplied_Price, MA_Period1) else If MA_Method1 = 2 then MyRSIMA1 = SmoothedAverage(vApplied_Price, MA_Period1) else If MA_Method1 = 3 then MyRSIMA1 = WAverage(vApplied_Price, MA_Period1); If MA_Method2 = 0 then MyRSIMA2 = Average(vApplied_Price, MA_Period2) else If MA_Method2 = 1 then MyRSIMA2 = XAverage(vApplied_Price, MA_Period2) else If MA_Method2 = 2 then MyRSIMA2 = SmoothedAverage(vApplied_Price, MA_Period2) else If MA_Method2 = 3 then MyRSIMA2 = WAverage(vApplied_Price, MA_Period2); Plot11(MyRSIMA1, "RSIMAvg1"); Plot12(MyRSIMA2, "RSIMAvg2"); EasyTrader_I
  20. Hi laurus12, Just to be clear in what you are expecting... The standard RSI Indicator has three lines, and Now you want one more line which is an Average of RSI. And you want an Option to choose whether it is a SMA or EMA, or WMA..Right? Please let us know... EasyTrader_I.
  21. Hi Wchg, If you see the code that you have posted... compoundValue(6, Sqr(1 - 0.5 * alpha) * (smooth - 2 * smooth[1] + smooth[2]) + 2 * (1 - alpha) * cycle[1] - Sqr(1 - alpha) * cycle[2], (price - 2 * price[1] + price[2]) / 4); where compoundValue is a function which carries 3 parameters. #Param1 = 6, #Param2 = Sqr(1 - 0.5 * alpha) * (smooth - 2 * smooth[1] + smooth[2]) + 2 * (1 - alpha) * cycle[1] - Sqr(1 - alpha) * cycle[2], #Param3 = (price - 2 * price[1] + price[2]) / 4. So try if you can post the code for CompoundValue function. Am I correct Tams? Thanks, Easytrader_I
  22. Hi nuno, No, currently there is no inbuilt function to perform that action. However you can start with the following code and add as you want. Use the Input Txt_Adjust accordingly to the market you are using. Input: Txt_adjust (5);// Points Input: TxtClr (RGB(255,135,00)); //========================= var: TX1(0); var: TX7(0); var: TX2(0); var: TX8(0); var: TX3(0); var: TX9(0); var: TX4(0); var: TX10(0); var: TX5(0); var: TX11(0); var: TX6(0); var: TX12(0); //========================== If LastBarOnChart then begin TX1 = text_new(Date,Time,High+Txt_adjust*5 Points,"H"); TX2 = text_new(Date,Time,High+Txt_adjust*4 Points,"E"); TX3 = text_new(Date,Time,High+Txt_adjust*3 Points,"L"); TX4 = text_new(Date,Time,High+Txt_adjust*2 Points,"L"); TX5 = text_new(Date,Time,High+Txt_adjust Points,"O"); TX6 = text_new(Date,Time,Low-Txt_adjust Points,"L"); TX7 = text_new(Date,Time,Low-Txt_adjust*2 Points,"A"); TX8 = text_new(Date,Time,Low-Txt_adjust*3 Points,"P"); TX9 = text_new(Date,Time,Low-Txt_adjust*4 Points,"U"); TX10 = text_new(Date,Time,Low-Txt_adjust*5 Points,"T"); TX11 = text_new(Date,Time,Low-Txt_adjust*6 Points,"A"); //Above the Bar Text_SetColor(TX1,TxtClr);Text_SetStyle(TX1,2,1); Text_SetColor(TX2,TxtClr);Text_SetStyle(TX2,2,1); Text_SetColor(TX3,TxtClr);Text_SetStyle(TX3,2,1); Text_SetColor(TX4,TxtClr);Text_SetStyle(TX4,2,1); Text_SetColor(TX5,TxtClr);Text_SetStyle(TX5,2,1); //Below the Bar Text_SetColor(TX6,TxtClr);Text_SetStyle(TX6,2,0); Text_SetColor(TX7,TxtClr);Text_SetStyle(TX7,2,0); Text_SetColor(TX8,TxtClr);Text_SetStyle(TX8,2,0); Text_SetColor(TX9,TxtClr);Text_SetStyle(TX9,2,0); Text_SetColor(TX10,TxtClr);Text_SetStyle(TX10,2,0); Text_SetColor(TX11,TxtClr);Text_SetStyle(TX11,2,0); End; Cheers, EasyTrader_I
  23. Hi Steven, Its "life of trade". EasyTrader_I.
  24. Hi Disco, pgain is correct, If you still find difficulties in finding the code, here it is.. just copy and paste it into a new paintbar. inputs: Price( Close ), FastLength( 7 ), SlowLength( 14 ), UpColor( Cyan ), DnColor( Blue ) ; variables: FastAvg( 0 ), SlowAvg( 0 ) ; FastAvg = Average( Price, FastLength ) ; SlowAvg = Average( Price, SlowLength ) ; if FastAvg > SlowAvg then begin PlotPaintBar( High, Low, "MACross", UpColor ) ; Alert( "FastAvg above SlowAvg" ) ; end else if FastAvg < SlowAvg then begin PlotPaintBar( High, Low, "MACross", DnColor ) ; Alert( "FastAvg below SlowAvg" ) ; end else NoPlot( 1 ) ; { unpaint the bar } Looking forward to help you to achieve your trading Goals .. Good Luck, Easytrader_I.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.