im unable to move the stop loss to the entry price when i sell half of the position i have the entry price working and can get the price for the stop loss but i
I want to create a series in which every value is normalized to the value of a particular element in the series, for example the latest value. If you try syntax
i want to do a strategy that entries a position at the buy-level (blue Line) and sells after reaching the take-profit-Level (green line) or the stop-level (red
The function to be used in this case is: cnt = math.sum(cond ? 1 : 0, len) In my (defective) example: NumberOfOccurrencesToBeCounted = math.sum(OccurrencesToBe
//@version=5 strategy(title='Test',overlay=true) i_hide_eq = input.bool(true, title='Hide Equity Curve') plot(strategy.equity, display=i_hide_eq ? display.none
I'm not a coder but doing my best :) I have made some code for tradingview where I use ema's and hoffman strategy to open and close orders. First it was an indi
I am new to pine script. I am trying to create strategy with below condition. if current price is greater than supertrend(5,1) and current price is greater than
I need to figure out how to turn my strategy into a study for V5 Pinescript. I cannot seem to find any info about it online. Im pretty sure for v3 you have to c
My code is configured to initiate an alert whenever the current price crosses a predetermined buy/sell level. This part works. However, in certain time frames (
is there a way to plot candles as Seconds Timeframe, without using a timeframe.isseconds. found a calculation but i cant plot candle on it. // calculate bar tim
I'm making an indicator to calculate two EMAs, compare which one is greater, and then deliver the user a bias of bullish or bearish (by coloring the second row