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.

GRANDEUR

Members
  • Content Count

    33
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    Orel
  • Country
    Russian Federation
  • Gender
    Male

Trading Information

  • Vendor
    No
  1. I am new to making functions and named the function you posted not 'NEWHD'. Although, the code doen't work OK so far (there comes only one trade for many mounths), I hope my tuning will help. Alex, thank you so much!
  2. Alex, thank you for you reply! Your approach appeals to me. I am also using MultiCharts but it fails to compile the function you wrote. The error is 'assignment is allowed only for variables or array elements' and 'NEWHD' is highlighted. Why is that? I've never created any functions, only signals. Maybe there is a mistake there. And as for variables assignment under 'inputs', I know about that. I just wanted to write the code as small as possible not loading people with lots of words.
  3. Tams, you're right as always. I'll try to organize my thoughts once again and maybe I'll come up with an answer. If not, I beg your pardon to resume the thread
  4. Sorry, I got it. I just edited #3 of the list above: 3.If high of a bar > all previous highs of today so far AND IT IS > (TODAY'S OPEN+100) then that high is 'highesthigh' (HH). Here is what I wrote so far: if time=0930 then value1=open; if entriestoday(date)<1 and time>0930 and time<1630 and h>(value1+100) then value2=h; if entriestoday(date)<1 and time>0930 and time<1630 and h>(value1+100) then sell short next bar at (value2-50) stop; if time>1630 then buy to cover next bar at market; When I apply this code, trades are executed not at (HH-50) during the day but at (high [of the bar prior to entry]-50).
  5. 1. 30-min timeframe. 2. A new day begins (today). 3. If high of a bar > all previous highs of today so far then that high is 'highesthigh' (HH). 4. HH is calculated each bar during the day. 5. We place a sell short stop order at (HH - 50 points). 6. That stop must be active till the end of the day. 7. If the order is not executed next bar and a new HH is formed then we cancel the order and place a new sell short order with the parameters as in (5). 8. If the order is not executed till the end of the day then we cancel the order. 9. If the order is executed then we buy to cover at the end of the day. 10. Loop.
  6. Come on guys, there must be someone who knows the answer on my question!
  7. Please, help me to code the following simple algorithm. A new day begins. Then I want that a highest high (HH) of the day to be calculated. If a HH is created then I want to place my sell short stop next bar at X points below HH. The stop must be active till the end of the day until it's executed. An exit is at the end of the day. If the stop is not executed that day then the same condition but with new parameters takes place next day. Here is a picture of what I'm telling about: http://file.qip.ru/file/129903846/98832aca/Picture3.html I was able to write a code that sells short only on the next bar after a HH is formed and the condition is fulfilled, but I want that my stop be active until the end of the day.
  8. Maybe, here it is Semi-Automated Trading Using Trend Lines for Tradestation
  9. 3monkeys, thank you for your post but unfortunately I am not allowed to log in to TradeStation Discussion Forum. Actually, I'm a MultiCharts user not TradeStation though the coding languages are similar. Tams, I believe in my inner abilities but I would be glad if somebody helped me in coding the algorithm
  10. What do you mean by the "ID"?The answer I'm looking for is wether it is possiple in TradeStation not only to visualize trends but also to trade them mechanically? For example, I have two lows: 1) swinglow(2,low,2,15)*; 2) swinglow(2,low,2,15). * - Syntax of 'swinglow' function in EasyLanguage: SwingLow(Instance, Price, Strength, Length) So I want to draw an imaginary trendline connecting these two lows, assuming it is an uptrend line. When the price touches this imaginary line from up to down I want there would be a 'sell short' signal. And vice versa for down trendlines and buy signals.
  11. Here is the picture. It is the same condition but there is 'short' instead of 'buy'. http://file.qip.ru/file/129451786/e11d76de/picture.html
  12. Please, could anyone tell me how to code a simple algorithm: buy next bar at down trendline break. Down trendline is formed by connection of two points: swinghigh and swinghigh[1].
  13. I' m sorry for delays in my replies. I got a newer version of MultiCharts. It's become much easier with that new feature but it's not all obvious though. It doesn't work properly with some of my strategies. Now I'm trying to figure it all out for myself. Tams, thank you very much for your help!
  14. Tams, I am using Multicharts but I don't see the 'Backtesting Precision' tab in my 'Strategy Properties'. Maybe, this tab appeared in a new version? I have 5.0 Beta.
  15. Oh, thank you. I clicked 'Insert Image' and have already got tired of looking for file sharing services. Here it is.
×
×
  • Create New...

Important Information

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