How do I open a position in the first bar of a newly started trading system ?

Forums ProRealTime English forum ProOrder support How do I open a position in the first bar of a newly started trading system ?

  • This topic has 28 replies, 5 voices, and was last updated 6 years ago by avatarLeo.
Viewing 14 posts - 16 through 29 (of 29 total)
  • #65790

    of course, I just meant your concept.

    You could say :

    to open a position in a system in the 1 minute chart that was started between 7:34 and 7:35 and will have its first bar at 7:35.

    Agree ?

    #65792

    Problem may be if you start a system out of hours and there is accidentally no bar at 7:35, no position will be opened.

    So, the method with prelaodbars and barindex may be more reliable.

    #65800
    Leo

    I have posted a system that opens a position exactly at last minute of opened markets.

    As far I understand you want a code that opens a position exactly when it is activated and then controls the trade itself. I think is a very powerful tool for manual trading as default style of trading.

    By the way, once I test a code that opens stop and limit orders symulstaniously. Then the first try I had a copy paste problem the result was that it opened a trade “exactly at the moment of activation not at the end of the bar closing. That means for me that prorealtime runs the systems at the moment of activation like running the code at every closing bar.

    let us know your progress

    #65828

    to open a position in a system in the 1 minute chart that was started between 7:34 and 7:35 and will have its first bar at 7:35.

    It would be a pain having to open the System in the coding window and then enter date and starting Time then back to the system running window then delete the old system (without current date and time) and also you would lose your Performance History.  Or am I misunderstanding?

    Yes Leo I am also thinking this Snippet could form part as a semi-manual entry, auto close trading Strategy.

    Good Work Verdi55
    GraHal

     

    #66680

    I use this:

     

    1 user thanked author for this post.
    #66691

    Thanks. Or maybe we could say :

    This would definitely open only 1 position, even if the result of the first position is accidentally zero.

    #67966
    Leo

    Here my code. I was not able to open a position exactly when the system is activated rather it opens a position in the next bar.

    My code is thought to be a standard

     

    manual trade for me.

     

    #67968
    #67969
    Leo
    #67971

    MySAR= SAR[0.9999,0.11111,0.222222]

    #67972

    Maybe as an Italian, you will better understand this :

    https://www.youtube.com/watch?v=UTO_KF04UiA

    #67985
    Leo

    I do not have any clue what are you talking about or why you are posting so weird videos.

    #67988

    What is more weird ? Speculating about 7*PIPSIZE

    or such videos ?

    #67991
    Leo

    So you were being sarcastic… I got it.

    Anyway.

    what about the code I posted? What’s your opinion apart of my costant values?

Viewing 14 posts - 16 through 29 (of 29 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login