Specification
Hi, I need a professional that can help me transform the following indicator from pinescript to mql4,
The following is based on 2 indicators, trend measured through a regression line and structure measured with the RSI indicator. I have the trend indicator in Pine Script code, I am attaching said indicator and a screenshot of the goal to be achieved. Long entries would be when the PearsonsR correlation coefficient of the regression indicator was, for example, above 0.8 or, in normalized terms from 0 to 100, above 80, and in turn, an impulse-correction-impulse structure had been generated with the RSI indicator, for this in the last 50 candles the indicator must have exceeded level 70, have fallen from level 45 without exceeding level 30 and subsequently exceed level 55. I think that with the screenshot of the searched operation it is clear. Thank you.
I would like the ea to work with all kinds of assets, including American stocks, forex, indices, raw materials... For position management the SL should go after the last turn, when the RSI goes from being above 55 and falls below 45, the TP should go 2 times the distance of the SL, with a trailing stop when the price reaches the distance in favor of the stop. The configurable parameters for optimization would be for the PearsonR indicator, the number of candles to consider for the regression line and the value of the R coefficient, in terms of the RSI the intermediate levels 45 and 55, and logically the level of TP and what distance is activate the trailing stop. And the same for shopping. If you have any questions about what I want please ask me.