Forum

How can I make a random number

I need a number from 0.00 to 1.00 completly random, is that too much to ask? MathRand() is not working for me, please help

EA code theft

After doing my homework I concluded that there is no safe way to have the code of my EA private if I make public the EX4 file. With dlls is harder to crack but still doable. If I wanted to have profits using money from other people, I read somewhere here that I can sell "the signal": 1) Im not sure

iHighest for the highest price but....

What about the second highest? or the third? My guess is, for example, get Ihighest for say.. 100 candles, if the highest is candle 10, then I would need to get iHighest from 1 to 9 and then iHighest from 11 to 100, compare the 2 new values and obtain it that way. Is there any other way to get the

Send notifications question

So I wish my expert advisor to send a notification to my metatrader app ONLY whenever it opens and order ( OrderSend() ). And it does, but my EA also has a trailing stop function . Whenever it modifies the order it sends a notification stating this modification. and in a trailing stop this happens a

Error Ordermodify 130, HELP

This is a trailing code, if price reaches 50% of profit then it trails trailamount (btw trailamount=200 for example). It works perfeclty for sell orders but for some reason it doesnt trail for buy orders. Probably Im missing some dumb mistake. Please help. I have even printed the (Bid-(trailamount*

Send notification question

Hello! So I implemented the sendnotification() to my EA and this is what happens: It startet working great in my specific sendnotification conditions BUT, I found out that when I changed my stoploss and takeprofit values manually (Which I do A LOT) it also sent a notification to my app which I

Simple code request PLEASE!!!

So this is what I want to do: Send a notification to my celphone BUT i only want it to send it maximum once every x time... lets say 1 notification each 12 hours if the condition is true. Thank you

Quick question

I had an open winning position and it was closed by itself, didnt reach the TP mark. Why can this happen? Thanks in advance

How to code this simple intention

My robot only does correct analysis after a certain time like 30 seconds after starting it. Before that its a mess. How do I code so that the robot doesnt start working after 30s from starting the bot and not before. I was thinking using a variable X=TimeCurrent() but it doesnt work inside OnTick()

Trader ready to make a living with expert advisor with some doubts

Hello comunity I began to study all of this nonsense about 3 years ago...Used to be an online poker player before all that came down... I deposited $100 in my forex account... lost it.... deposited another $100.... lost it slower... I had some algorithm writting background... learned mql4...made a