Forum

Help me code this please

Hello my friends, I want to code a function that takes a trade if the current price goes up one or more ticks, but when it goes down a trick it takes the position directly . As you can see from the illustration in the attached image. Here is my algorithm If Current Price < Lowest price { if

Save data in array

Hello everyone, i have a little problem please I want to copy the difference between the last 2 prices in an array, when I display the array , it does not save each price, it saves only the last price in all array cells. as you can see in the attached image void OnTimer () { MqlRates bufferPrix[

Compare the last 2 values of LAST_TICK.BID

Hi, Can you help me with a function that compares the last 2 values of Last_tick.bid? thank you in advance 2022.08 . 03 13 : 44 : 32.725 (Boom 300 Index,M1) Bid: 3809.291 , 2022.08 . 03 13 : 44 : 33.339 (Boom 300 Index,M1) Bid: 3809.261 , 2022.08 . 03 13 : 44 : 34.358 (Boom 300 Index,M1)

Take a buy on the movement of the last tick.(last_tick)

Hello engineers I have a small problem that I would like your help : Here is my problem: I want to buy on a small move on the last tick. For example the last tick(last_tick[0].last) is moving down and it is currently priced at 100.18 once it goes up one step, either it comes back to 100.17 I take a