Genetic strategies creation for prorealtime

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • #52840 quote
    Degardin Arnaud
    Participant
    Junior

    Hi,

    I would like to share an automatization system of backtest I write in autohotkey.

    Here is the repository of the program and installation explanationshttps://github.com/adegard/PRT_AUTOHOTKEY

    Typicaly it is a script which automatize (and fastered) backesting of prorealtime strategies with a list of indicators and various types of trailing stops in different combinations. The idea is to create a lot of different strategies and make automatic backtesting like “genetic creation”.

    The results are “reading” on the screen with OCR functionality and the  results are stored in one file.

    You can change strategy as you want in “.txt” files.

    Fill free to ask question and help me to improve it and solve some “bugs” or add with optimization functions (based on period or other things…)

    Thanks

    Nicolas and AutoStrategist thanked this post
    #52863 quote
    Nicolas
    Keymaster
    Master

    Thank you very much Arnaud for us to benefit from your knowledge and your very interesting ideas that go far beyond what we could do with the platform.
    I think the idea is great, I will test this tomorrow because it is a little late for the moment, and will not fail to come back to share my feelings.

    #52864 quote
    Nicolas
    Keymaster
    Master

    strings.ahk file is missing, seems necessary because of its include in your main script. I cannot find it anywhere.

    #52869 quote
    Degardin Arnaud
    Participant
    Junior

    Hi Nicolas,

    I think it is not use in the script so put it in comment with “;”

    anyway you could found some bugs. I will post new releases. I woud like to complete gui windows with more options like money managment with different kind of scripts to include (i.e. trailing stop script found on the prorealcode platform…) etc

    #52870 quote
    Degardin Arnaud
    Participant
    Junior

    one issues for users could be the X,Y mouse coordinate and use of OCR external program… I trying to include a new library for text recognition to speed up result analysis

    #52871 quote
    Nicolas
    Keymaster
    Master

    Amazing job Arnaud!

    Degardin Arnaud thanked this post
    #52910 quote
    Nicolas
    Keymaster
    Master

    Do all the X,Y coordinates need to be edited in the .ahk file? or is there any possibility to automatically adjust them for a computer screen? Sorry, but I’m trying to find out how to make it more user friendly 🙂 and I don’t know any knowledge in auto hotkey script 😐

    #52928 quote
    Degardin Arnaud
    Participant
    Junior

    Hi Nicolas,

    The X,Y coordinates of mouse clicks are adjusted for my computer using the “windows spy” of Autohotkey :

    To access to the “Windows spy” tool: simply rightclick on H icon in notification icons bar of windows when script is running. Then point your PRT Report windows or what coordinate you need to capture. (see picture attached)

    For OCR: you need to drag mouse as rectangle to read the values in the report (Gain/loss, number of trades…) so there si XY for left up and right down corners

    For button click: only 1 click is needed for changing pages

     

    For the moment I don’t know how to “automatically adjust positions”, but there is some autohotkey features to find images on the screen I will try those days…

    windows-spy.jpg windows-spy.jpg
    #52933 quote
    AutoStrategist
    Participant
    Veteran

    Looking forward to seeing this working.  We had a guy where I worked who did some amazing Window GUI operations using AutoIt which is a very similar tool to AutoHotKey.

    #52936 quote
    Degardin Arnaud
    Participant
    Junior

    ok, fine…! could you share also your script in Autoit?

    #52944 quote
    Degardin Arnaud
    Participant
    Junior
    #53002 quote
    AutoStrategist
    Participant
    Veteran

    I have no knowledge of AutoIt myself and those I saw at my previous place of work were not related to the markets, they were replacing a lot of manual tasks and running automated test scripts etc.  I was just commenting on how powerful they can be.

    #53063 quote
    Degardin Arnaud
    Participant
    Junior

    I put a new release of the program, with “text finder function” so it will not be necessary to adjust any coordinate, the program find the button itself.

    Please try it to see on your computers if you have some difficulties…

    Download PRT_strategy_tester v1.10.ahk and FindText_function.ahk in the same folder from

    https://github.com/adegard/PRT_AUTOHOTKEY

    Run PRT_strategy_tester v1.10.ahk

    Go to a new chart, it will be show option windows. Press OK to start (in the 3rd tab).

    Thanks for your help 😉

    #53129 quote
    Berra
    Participant
    Veteran
    Hello! A basic question, I am running the PRT_strategy_tester v1.10.ahk  on the screen I got “Wait PRT graph….” What is the next step? When I go to PRT and New chart bottom no option window show up. Thanks /Berra
    #53178 quote
    Degardin Arnaud
    Participant
    Junior

    Hi Berra, thanks for your answer. Probably the program didn’t recognize the same picture on the screen… it could come frome your theme selection or picture size different from mine… I will have a look. But could you please send me a screenshot of some graph windows of yours? Thanks. Arnaud

Viewing 15 posts - 1 through 15 (of 29 total)
  • You must be logged in to reply to this topic.

Genetic strategies creation for prorealtime


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 28 replies,
has 5 voices, and was last updated by wurstbrot
8 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/15/2017
Status: Active
Attachments: 6 files
Logo Logo
Loading...