Antoine / Publications
Forum
TakeProfit question
Hello, Is it possible to modify the quantity of Lot sell or buy after a "TakeProfit"? For example if I bought 1 Lot of EURUSD at 1.3900. I would like that my takeprofit request (resquest.tp) sell 0.5 lot at 1.3950 and let the other 0.5 lot in the market. Is it possible and how can I do?? Thank you
Question on MACD
Hello, I would like to know if it it possible to change main draw type of the indicator on the chart. I would like to have a line instead of a bar chart. Somebody could help me please. Thank you. Antoine
Zigzag indicator
Hello, I would like to use the values of the Zigzag indicator in my EA for define the stoploss value. How can I do?? Thank you. Antoine
Return of digits after decimal point
Hello dear developers, I would like to store in a value the Buying price of a trade but with only two digits after decimal point. How can I do this?? Thank you. Antoine
Problem of data storage and return!
Hello, I try to do an EA which calculate a value on the OnCalculate() part of my code in a loop for each new [i] (IndBuffer[i]=CalculateValue). I would like to store /save this value in an handle in order to return it in the OnTick() part of my code in order to use it but I don't know how
Copy a string in a buffer
Hello, How is it possible in MQL5 to copy a string value like "UPPER" in a buffer?? Somebody could help me please... Thank you
Date/Time storage
Hello, I would like to know how is it possible to do a condition on a date: for example if (considering that 2 datetime values are store in variables call Date1Val and Date2Val ): if (Date1Val < DateVal2 - 5Min || Date1Val > Date2Val + 5Min) ... My problem is concerning the fact to add or to minus
Problem on the Stochastic indicator
Hello, I would like to know how is it possible to get the value of the 2 lines of the Stochastic indicator because I would like to do a Buy/Sell Signal when there is a cross of these 2 lines... Somebody could help me please??? Thank you
Problem of parameters definition in OnCalculate() part of code
Hello, I would like to know ow is it possible to define values of indicator on the OnCalculate() initialisation parameters of my EA. In fact I have to use the Fastval and SlowVal (or Main and Signal) of the MACD indicator for calculate some values in a loop For. For example: (sorry for the format
Search Max and Min values ofan indicator
Hello, I would like to know how is it possible to search the Max or the Min value of an indicator (the MACD for example) for a limited period and save this value into an array. Thank you