Jump to content

Recommended Posts

Posted

#include <IE.au3>
#include <Tesseract.au3>
#include <MsgBoxConstants.au3>
#include <Math.au3>
#include <FileConstants.au3>
#include <StringConstants.au3>
#include <File.au3>
#include <ScreenCapture.au3>
#include <sound.au3>
#Include <WinAPI.au3>
#include <Date.au3>

 

$OCR_Result = _TesseractScreenCapture(0,"",1,2,220,660,500,730,1)

$OCR_Result1 = _TesseractScreenCapture(0,"",1,2,220,660,500,730,1)
$OCR_Result2 = _TesseractScreenCapture(0,"",1,2,220,660,500,730,1)
$OCR_Result3 = _TesseractScreenCapture(0,"",1,2,220,660,500,730,1)


$sound = _SoundStatus("C:\ExpertAdvisorBuyAlert.wav")
while _nowtime < 3.30 pm
    If $sound = True Then
       if $OCR_Result1 > $OCR_Result2
       

    EndIf
EndIf

Wend

Trying to ocr some values on chart in real time(once per minute) and buy/sell securities on basis of alert generated in my software.

I am struck onto few steps.

1. On Tesseract Screen Capture indentation parameters. How can we determine the exact parameters if I just want numeric values only.

2. The Tesseract Screen Capture generates and error Obj1 on line 185 which needs to be resolved.

3. Sometimes lines get overlapped with values. What to do in that case.

3. Detecting the sound as and when it approaches and then comparing the ocr values to decide on either buy or sell.

The values that needs to be fetched are encircled.

trade.png

  • Moderators
Posted

Moved to the appropriate forum.

Moderation Team

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...