Pattern accuracy for trading stocks

Asked by Mauro Edmundo Vargas Veloz

I am trying to use sikuli to look for candle patterns and perform operations automatically

However I do not get good results

Is it possible to change the accuracy of the search?

I have problems with colors and distance them between bars

Example: http://imgur.com/a/dv7dO

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

You have succeed to find pattern.
So use findAll() instead of find().
Check color each match object all of them.
You can find a suitable one from them.

it is possible to divide the Region of match object m.
m.setCols(numberColumns)

it is possible to get color of match object m. (position is center of match object.)
m.getCenter().getColor()

This is an example when there is only one object.
numberColumns = 10
m = find("1497654758699.png")

ma.setCols(numberColumns)
for x in range(numberColumns):
    m.getCol(x).highlight(1)
    print m.getCol(x).getCenter().getColor()

Revision history for this message
masuo (masuo-ohara) said :
#2

ma.setCols() is typo.
m.setCols() is correct.

Can you help with this problem?

Provide an answer of your own, or ask Mauro Edmundo Vargas Veloz for more information if necessary.

To post a message you must log in.