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.