Englewood85
New member
I'm using the built-in Stochastic strategy on the USD/GBP. I'm displaying the 1 hour chart. Here is the strategy's code:
I also have the FloatingPL indicator displayed on the lower graph.
1. Some bars are light green, some are dark green. What does this signify?
2. On 09/15 at 9:00 AM, there is a sell signal. On 09/17 at 2:00 AM, there is a buy signal.
a. Is the 09/15 sell signal a sell to open or sell to close? How can you tell?
b. If the 09/15 signal is sell to open, how can there be green FloatingPL bars all the way until the 09/17 buy signal? During most of that time, the price is
higher than the 09/15 sell price, which means most of the FloatingPL bars should be red right?
c. If the 09/15 signal is sell to close, this means that there is no open position between 09/15 thru 09/17, which means there shouldn't be green or red
FloatingPL bars, but there are green bars (light and dark) present. How can this be?
Code:
#
# TD Ameritrade IP Company, Inc. (c) 2013-2020
#
input priceH = high;
input priceL = low;
input priceC = close;
input kPeriod = 10;
input slowing_period = 3;
input over_bought = 80;
input over_sold = 20;
input averageType = AverageType.SIMPLE;
def fullK = reference StochasticFull("k period" = kPeriod, "price h" = priceH, "price l" = priceL, "price c" = priceC, "slowing period" = slowing_period, "average type" = averageType).FullK;
AddOrder(OrderType.BUY_AUTO, fullK crosses above over_sold, tickColor = GetColor(8), arrowColor = GetColor(8), name = "StochasticLE");
AddOrder(OrderType.SELL_AUTO, fullK crosses below over_bought, tickColor = GetColor(6), arrowColor = GetColor(6), name = "StochasticSE");
I also have the FloatingPL indicator displayed on the lower graph.
1. Some bars are light green, some are dark green. What does this signify?
2. On 09/15 at 9:00 AM, there is a sell signal. On 09/17 at 2:00 AM, there is a buy signal.
a. Is the 09/15 sell signal a sell to open or sell to close? How can you tell?
b. If the 09/15 signal is sell to open, how can there be green FloatingPL bars all the way until the 09/17 buy signal? During most of that time, the price is
higher than the 09/15 sell price, which means most of the FloatingPL bars should be red right?
c. If the 09/15 signal is sell to close, this means that there is no open position between 09/15 thru 09/17, which means there shouldn't be green or red
FloatingPL bars, but there are green bars (light and dark) present. How can this be?