Forum

Issue with editing TP

Hi! I try to create a strategy which works as follows: - open a Long position at 0:55 am with a very wide TP and SL - at 1:05 am change TP into the price, at which the current position was initially opened. Is this possible to create such condition? And if so, could anyone please help me with this

Issue with setting specific Buy and Sell time

Hi! So I have been trying to implement a simple strategy, which I plan to develop further. The first step should work as follows: - buy at 23:30 and close at 00:05. I used a simple "if" function with "Hour", "minute" and "seconds", however it does not open any positions. Could you please help me

Unnecessary "0" at the beginning of as the result of the iCustom function

Hi ! So I created a simple Itchimoku strategy, with 5 iCustom functions. Unfortunately, although all values printed from iCustom functions work correctly, one "Itchim4", which is supposed to print a certain value of S&P500, prints "0" at the beginning. ( I have attached screenshot if these values

Incorrect iCustom function outcomes

Hi all! So i have been trying to implement a simple trading strategy based on a custom indicator. If "Forexprofits" prints any value then go Long, if "Value 2" prints anything then open a short position and close all long positions. (attachment 2) Unfortunately, although I think i applied the

Problem with Trailing SL

Hi guys! I created a simple trading algo which opens long positions when it received BUY signal from an indicator and closes all long positions and opens Short positions when it received SELL signal . Everything works and I decided to add a trailing SL feature. Unfortunately although it prints no

Question from a beginner pt.2

Hi guys! I am trying to create a trading strategy , which follows a simple rule: If Reversal Indicator prints some specific values and we have less than 10 open positions then we open a Sell position. If Reversal Indicator prints these values but we have 10 open positions, then the strategy should

Why is my strategy not trading? Question from a beginner user.

Hey guys! This is my first post here as I am new to MQL. I have been trying to create a simple strategy, which trades based on indicators gathered from the "semafor123Triangles" custom indicator . Long story short, as you can see in my code, semafor indicator has 7 "spots" which give values. These