Code Help

 
Hey guys i'm trying to code a bot with the the last 3 values from zig zag, bot will have some conditions. First, have a fixed timeframe to get the data, if reach 50% level and 38% from the last 2 values from zig zag, reduce timeframe for one i choose and buy or sell if a new candle is positive or negative. Stop Loss by pips and stop gain new high. Please someone help me, i uploaded an image explaining. It will work with offline chart
Files:
Project_bot.png  11 kb
 
Alexandrelobao: Hey guys i'm trying to code a bot with the the last 3 values from zig zag, bot will have some conditions. First, have a fixed timeframe to get the data, if reach 50% level and 38% from the last 2 values from zig zag, reduce timeframe for one i choose and buy or sell if a new candle is positive or negative. Stop Loss by pips and stop gain new high. Please someone help me, i uploaded an image explaining. It will work with offline chart
  • Usually people who cannot code do not receive free help on this forum, although it could happen if you are lucky. Be patient.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community.
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free).
  • Finally, you also have the option to hire a programmer in the Freelance section.
Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • 2023.05.09
  • www.mql5.com
The largest freelance service with MQL5 application developers
 

Please don't post randomly in any section. Your thread has been moved to the Expert Advisors and Automated Trading section.