Can you help me, I want to do if you press the button up and the graph goes up, then I won, otherwise I lose.

The photo shows that the graph will be on top.

I give you my project schedule to be on the screen (Grafic).
Mobile_test_test_2.aia (381.2 KB)

image

Which Screen?

Grafic

I have found where the graph is generated:

You have two buttons for your predictions, I will call them Up or Down.

You must have some variable somewhere where you keep a running score (I can't read French.)

What you need is a new global variable, call it predictedDirection, initially 0.
In the Up button click, set the predictedDirection to +1
In the Down button click, set the predictedDirection to -1

In your Timer block, after you have the new price in the range of -5 to +5, calculate the product of newPrice and predictedDirection, and add that product to your running score.
Then reset predictedDirection to 0 to clear the way for the next Click.

This will increase your running score when you have predicted the increase (+) or decrease (-) of the currentprice, since multiplying two negatives or two positives gives you a positive number, but multiplying a positive and a negative gives you a negative.

Maybe I misunderstood you, maybe you misunderstood me.
1.


This is a block graph(diagram).

image
When you press the button, a dash appears.

This is a timer and win code, after 9 seconds if it is above the line I win otherwise I lose.

image

The problem is precisely in this code, I don't know what can be set to make it work correctly.

PS: I hope you understand me)

Sorry, I only know English.

What about switching the language to English before taking screenshots?

Taifun

I need to do when I pressed the button if the graph goes up I won otherwise in the bottom.

image
This code should be responsible for win or loss.

Mobile_test_test_2.aia (381.2 KB)
I add my project file, this code is on the screen(Grafic).