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.

rajatheroyal

Members
  • Content Count

    41
  • Joined

  • Last visited

Posts posted by rajatheroyal


  1. hi guys..i want to backtest a simple system....i have only end of day data ....my conditions are as follows:

    i just want to buy 50 points above open ..each day... and exit at end of day ....for this i tried the following code

    [ intrabar order is enabled in the setttings]


    //===========================================

    if marketposition=0 then buy next bar at open +50 stop;

    setexitonclose;

    //===========================================
    the problem with this code is that suppose on a day buy condition is not met on a particular day..it doesnt cancel the order and buys next day using previous day open adding 50 to it...(instead of using current day open...)

    how to solve this?

    this is very very simple system..how to code this...


  2. thanks but i just want to backtest a system.in offline mode..for that only i am asking..i am not asking about real time orders and real trades...

     

    I just want to backtest a simple system... which buys on the break of previous day high ...

     

    if H> H[1] then

     

    buy this bar at the high of previous bar;(but TS accepts only orders based on close of bar)

     

    but i want to buy not on close but instead as soons as market breaks the high of yesterday ...so is it possible in tradestation ? if i had intraday data i could use [intrabarordergeneration=true] but since i have eod data alone whats the solution ....


  3. i have eod data alone...and i want to buy if high of this bar is greater than high of yesterday...i want to buy on market as soon as previous day high is broken....is it possible to give such order? Tradestation seems to accept orders on close of the current bar it seems...is there a solution....

     

    if H>H[1] then

     

    buy at H[1] at current bar

     

    this is all i want ....i dont have intraday data....


  4. Day trading is also a profession.If u are not able to find time for trading then better not to trade.As far is Market Proflile is concerned it requires full attention and concentration regarding , anticipating market structure in advance and act accordingly.so if u can spend time then only think of trading.

    Happy Trading;:)


  5. if you can describe your thought process...

    you can program it

     

    I can write it out for you,

    but I would do you a disservice,

    because you will come back again,

    and again,

    to ask similar "thinking required" questions,

    like what you are doing now.

     

    my suggestion:

    write out your thoughts,

    one logic at a time,

    one action at a time,

    one action per sentence,

    ONE SENTENCE PER LINE

    I repeat,

    ONE SENTENCE PER LINE

     

    you can make it if you want to,

     

    You are correct Tams.I understand that u want others to think and work before asking any question,but when we are urgent and want immediate results we sometimes think "why not post in a forum any experienced person will answer".

    Sorry Tams if i have wasted ur time here after please ingore my questions in the forum.:)


  6. hi,

     

    Here is a post about an EasyLanguage function to check if a given calendar date (from 1998 to 2010)

    is a Trading or a Half-Day or a Holiday

     

    http://www.traderslaboratory.com/forums/f56/suri-istradingday-easylanguage-function-7077.html#post79435

     

    regards,

    Suri

    Thanks sir,but this is for US market i think.I m from India and i wan to check indian holidays for the past data so for that is there any fuction or how to give condition that if a day is holiday then do so and so.


  7. Hi guys,our indian market starts at 9.55Am and ends at 15.30 pm. when i open , say hourly chart in multicharts it shows bars

    first bar time is 10.55(9.55 to 10.55)

    second bar time is 11.55(10.55 to 11.55)

    and so on.....

    But i want to get the first bar in 5 minutes and the next in hourly bars

    i mean like the following.........

    first bar 10.00 AM (9.55 to 10.00)

    and the following bars one hour each 11,12,13....and so on...........

    can anybody help me how to do that in Multicharts.:confused:


  8. Thanks for the idea.I myself live in a developing country 500$ is a big sum in our country.My whole trading capital is just 8 times the donation u people pay for developing countries:embarassed:

    i have not spent 500$ for my own education.:D

    Just keep guiding like this no need to code for me :).


  9. have you tried coding it ???

     

    this is similar in concept to your time question.

     

     

    var:
    profit.target(200);
    
    if netprofit < profit.taget then begin
    
    
    

     

    Thanks tams.I tried this,but this dint work coz this will take the total net profit and stop trading once the total net profit has reached in the strategy but i want only that day's profit to be considered.if theres any function like "net profit today" will work.

    :)


  10. Hi guys please help me to code the following in easy language

     

    I want to stop trading if my target for the day is achieved

     

    or the loss(the maximum amount i like to lose in a day) for the day is achieved

     

     

    Thanks


  11. Hi guys i tried sirtrade's Market profile for tradestation but its not working,does it require tick data to plot MP? I have 1 minute data only:(.Its showin error "The analysis technique attempted to reference data past the bounds of the array".Anybody help.

×
×
  • Create New...

Important Information

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