220 questions
0
votes
0
answers
60
views
Intra candle alert 5 minutes chart
so I have written a script for a trading view strategy and am very happy with the outcome. I have attached this to an EA to which buy, sell and close signals come through great!
I have a problem with ...
1
vote
1
answer
48
views
Right align view superimposed on other view using SwiftUI
I have capsule view on which I would like to superimpose a second "sticker" view to the upper right and cannot get it to work. The upper sticker view remains centered.
How can I get the ...
0
votes
2
answers
250
views
Ignore trailing commas in CSV file when using CsvHelper?
I need to read a CSV file with a trailing comma at the end of each line:
column1,column2, // header
value1,value2, // values
Note that the CSV file has only two columns. However the trailing comma ...
1
vote
2
answers
215
views
Trailing zero issue in angular
I have a method which returning a number
In that method I have a string,='1.10' and converting to number using Number method
Getting output as 1.1,but actually i need 1.10
Tried Number, parseFloat ,+ ...
-1
votes
1
answer
284
views
avoid sas removing trailing space
I get a txt file using infile. Each row has a length of 261, but I only need the first 162. The problem is that the last 5 characters are blanks, but I need to keep them to export the entire variable ...
0
votes
1
answer
1k
views
How to show BasicTextField trailing icon right after text in Jetpack compose
How to show BasicTextField trailing icon right after text in Jetpack compose.
My example shows icon at the and of the row, with big space between text and trailingIcon
BasicTextField(
...
0
votes
1
answer
56
views
How to move calculations so only the calcs within a set amount of bars are used
I have two scripts I'm trying to implement this on. I'll use the simple one for the example here. In this example I'm trying to count the number of red candles and the number of green candles within ...
0
votes
1
answer
126
views
X type variable (REDEFINGED AS digit, with 'SIGN IS TRAILING SEPARATE') changed after execute "IF xxx NUMERIC"
I'm working on opencoobol1.1, and I encountered the weird problem:
Here is the Cobol code:
03 WS-INP PIC X(30).
03 WS-INP-D REDEFINES WS-INP.
...
0
votes
0
answers
19
views
is my .htaccess if okay? i am unable to use directores in main domain
I have used following .htaccess file
#remove .php from url
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/$ $1.php
RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
RewriteCond %{...
1
vote
2
answers
60
views
Excel autofilter - doesn't find trailing 0s
I have 2 sheets, one the user inputs data used as search criteria and the second sheet is the data being searched. Both my search value cell and column are formatted as a number with 4 decimal places: ...
0
votes
1
answer
98
views
Automatically strip trailing whitespace when fetching data with `DBI::dbGetQuery()` in R?
I work with a database (of which I am not the DBA) that has character columns of length greater than the actual data.
Is it possible to automatically strip trailing whitespace when fetching data with ...
-3
votes
4
answers
1k
views
T-SQL how to add trailing zeros to a string varchar [closed]
My number needs to be 8 digits long, however If its less than 8 digits long I need to add trailing zeros to the it.
Example: 1234
Desired result: 12340000
I tried this at first:
DECLARE @YourNumber ...
2
votes
2
answers
66
views
Regex match items in list + trailing N numbers (Python)
I have a list of expected animals:
expectedAnimals = ['cat-', 'snake-', 'hedgehog-']
Then I have a user input (in string format) that contains some or all of the expected animals from the above list ...
0
votes
1
answer
744
views
"Unexpected token" or "JSON parse error - trailing comma" when doing API call with PowerShell
I have the following PowerShell API script:
$VMname = "abcd"
$IP_address = '2.2.2.2'
$url = "https://ansibletower.xyz.com/api/v2/job_templates/12321/launch/"
$token = "...
0
votes
3
answers
2k
views
How to "Fix" the ATR trailing stop in Pine Script
I would love your help.
I'm coding a trading strategy that goes **long** on the break of a 40-day high, and closes that long position when a trailing stop is hit. That trailing stop is 3*ATR which ...
2
votes
1
answer
157
views
Flutter list view builder flexible configuration
I ve started to teach myself the Flutter dart language. I have a list view builder widget established which I want to use multiple times in the app.
The list view consists of a checkbox, a Text in the ...
0
votes
1
answer
359
views
"Extra trailing closure passed in call" Error while passing multiple bindings
I am creating a simple Taskmanager for a schoolproject similar to apple's scrumdinger.
I created two filesafer for each struct. But if I try to pass them further I always get the error "Extra ...
1
vote
1
answer
556
views
How can I sorting ListView by trailing value in Flutter?
I have a ListView in Flutter shows stores location information from firebase after that a function works to calculate a distance between customer location and stores locations and show distance value ...
0
votes
0
answers
24
views
SQL trailing spaces removal to fit certain length
I have a SQL column of Employee City and the file output requires 40 characters in length. The system retrieves a value that is 58 characters.
This city value can change in length (Chicago, ...
0
votes
1
answer
1k
views
(Inside ListView.builder) Every time I press the ExpansionTile, the trailing icon of the ExpansionTile changes also on other ExpansionTiles
I have ListView.builder which returns ExpansionTile. Inside of this ExpansionTile, I used trailing with row widget. When I use row inside of the trailing, I lost the animation effect, therefore I used ...
1
vote
1
answer
4k
views
How do trail_points and trail_offset work with Takeprofit and Stoploss
I'm new to Pine Scripts and I'm trying to write a Strategy to test a new Indicator, the below is my code
if Up and (downbefore == true)
strategy.entry("buy",strategy.long,1000000)
...
0
votes
1
answer
534
views
How can I locale-format a python Decimal have a fixed number of decimals with trailing zeros
I'm using Python 3.10.x
So I would like to have all my numbers/floats the same amount of decimals and make it a locale format with or a dot or a comma as separator (I would like to have users choose ...
0
votes
1
answer
160
views
Format DataFrame to Achieve Equal Number of Digits in Each Column
I would like to format the DataFrame
Col1
Col2
Col3
-0.012
3.2
nan
0
-1
15.2
0.5
7.53
76.88
using trailing zeros, such that all values in each column have the same number of digits.
The result should ...
0
votes
1
answer
244
views
IIS URL rewrite not work for remove trailing slash
I need to add "Remove trailing slash" if this slash is 2 or more.
Using this Regex pattern (.*)/{2,}$ works in test pattern but does not work on live environment.
For example:
https://test....
-1
votes
1
answer
350
views
SQL how do I remove trailing spaces? [duplicate]
I'm currently working in an SQL database where a column has trailing spaces.
The spaces in question show up as %20 in the browser url.
I've been able to remove them with a select query but whenever I ...
0
votes
1
answer
543
views
Return value isn't returning double with two decimal places
This question goes towards both my class method and my test cases. I have tried searching it up and implemented some of the methods I found online, but in my test case, it shows as Expected: 10.0 ...
0
votes
2
answers
3k
views
Number Input - Step Attribute - format value to 2 decimal places
I am creating a currency input and I want my counter to be able to go up in pence, however, I currently have an issue:
at the moment when I click the step, I get something like 0.38, 0.39, 0.4, 0.41, ...
0
votes
4
answers
5k
views
Center the trailing icon of expansion tile in Flutter
I would like to horizontally center the trailing icon of my expansionTile,
Here is my expansionTile with the trailing on the bottom right :
I already tried to encapsulate the Icon in a Align and a ...
0
votes
0
answers
238
views
toad formatter starts next line under trailing comments
I find that toad formatter starts the next line of code under trailing comments.
Is there a way to change this.
This happens regardless of wrapping/stacking options.
e.g.
Original SQL:
SELECT C1, C2, ...
0
votes
1
answer
302
views
Pine script - Trailing Profit calculation error in secondary entry
I wrote a strategy that includes trailing profit by following examples of another coders. However, when the entry conditions are still valid and the strategy entry executed second time, it still takes ...
0
votes
2
answers
100
views
Length of a float without trailing zeros (python)
I want to print the length of a float number without trailing zeros using python.
examples:
0.001000 >>> I want to get length=5
0.000100 >>> I want to get length=6
0.010000 >>...
5
votes
2
answers
4k
views
Why Java BigDecimal stripTrailingZeros leads to scientific notation
When you use stripTrailingZeros for number ending with zero like 10, 50, etc. BigDecimal.toString() method decided to use scientific notation ( instead 50 prints 5E+1) Here is example code tested ...
2
votes
1
answer
487
views
A RenderFlex overflowed by 260 pixels on the bottom. - ListTile
I'm trying to add column in ListTile trailing but it gives me render flow error, plus it not align to it's title.
here is my code
SizedBox(
height: MediaQuery.of(context).size....
0
votes
1
answer
164
views
how to round down numbers with a trailing zero in python
In excel, there is this formula:
=ROUNDDOWN(D28-D33-D34, -2) and I got the results ==> 166400. But the result without the Rounddown formulas is ==> 166468.50.
My question is how to get the same ...
2
votes
2
answers
522
views
Regular expression to remove HTML line breaks at end of string
I'm trying to remove all trailing HTML line breaks from a string., e.g. <br> or <br/> etc.
So this:
<br /> remove HTML breaks after this string <br/><br><br />&...
1
vote
0
answers
379
views
Pine Script - 3 Take profits, 1 SL and 1 Trailing Stop Calculated by Price
I have read a dozen posts and tried many things in TV, but I can't seem to understand how PineScript works regarding strategy exits. I have an indicator-calculated-Price for each Level I want to use ...
0
votes
1
answer
361
views
Stop Loss function does not work in my Strategy Tester
In below Short position strategy tester, the tester opens the short position which is fine. If position makes a profit, "Take profit trailing stop" works just fine. But somehow if position ...
0
votes
3
answers
3k
views
Excel Graph should not have trailing empty cells take up space on axis
Want to draw a graph on a range of data which length can change depending on user input.
So, empty cells at the end of the range should not appear on the graph, and the axis should not have these ...
0
votes
1
answer
675
views
How to eliminate trailing space in AutoHotKey scripts
AutoHotKey v. 1.1.33.09. Windows 10, Firefox, Edge, Chrome, multiple applications
I have several lengthy email addresses associated with some non-profit work I do. I am creating shortcut keystrokes in ...
0
votes
1
answer
315
views
I am trying to write up a trailing value that only adjusts to a new value when a condition is met in ThinkScript
Similar to the PreDefined Study "PriceChannel" that only changes it's value if there is a new low or a new high, I want it to only change it's value when a condition is met, then keep that ...
1
vote
2
answers
1k
views
Oracle SQL remove trailing new line
I'm creating an ssrs form in oracle sql on which I need to list an address. New lines have to remain in the address however I can't find the way of removing new lines at the end of the address.
...
1
vote
0
answers
23
views
How can I make the trailing sell move up with price and not go down when price reverse without using the high of the current candle in PineScript
How can I make the trailing sell move up with price and not go down when price reverse without using the high of the current candle in PineScript
//@version=4
study("Trailing Sell ", overlay=...
0
votes
1
answer
418
views
Data Migration from DB2 to PostgreSQL using AWS DMS - Varchar fields are showing trailing spaces
We are migrating DB2 data to PostgreSQL 11.x using AWS DMS, we have varchar fields in db2 with trailing spaces and without any TRIM these fields working fine when we are using these fields in a WHERE ...
8
votes
1
answer
3k
views
What is the correct way to write multiple trailing closures in Swift?
I keep getting an error from swift playgrounds that it can't find the "missing argument for parameter 'closure' in call."
func someFunc(closure: () -> (), closure2: () -> ()) {
...
2
votes
0
answers
431
views
Pine Script Tradingview - basics for position management , entry, stop loss and trailing stop
I have a strong background in VBA, Excel is my second nature. Now I've been trying to get the simplest strategy working on TView for days already but I just cant grab the logic yet.
I created my own ...
0
votes
2
answers
979
views
Removing trailing zeros - c++ [duplicate]
This code:
cout<< to_string(x) + "m ----> " + to_string(x *0.001)+ "km"<<endl;
with this outputting:
0.002000
However, I want to remove the trailing extra zeros, but it should be in ...
47
votes
11
answers
79k
views
How to turn off the prettier trailing comma in VS Code?
How to turn off the prettier trailing comma in VS Code?
I go to settings. Select none for the prettier trailing comma. Restart VS Code. Select a piece of TypeScript, press Ctrl + Shift + F and the ...
0
votes
3
answers
317
views
How to round and format a number in JavaScript without trailing zeros?
I have two inputs that get multiplied and I need the result to be rounded down without trailing zeros. I have tried a few different built-in methods, such as number.toFixed(2), but they did not ...
2
votes
0
answers
813
views
Why forEach skips empty elements created by trailing commas in array? [duplicate]
I was reading Trailing commas and .forEach() documentations on MDN meanwhile playing with arrays.
So let's imagine a scenario when you have an array with elements like Number, undefined and created ...
1
vote
1
answer
305
views
Postgresql drops trailing zeroes when loading time with milliseconds from csv
I am importing a csv file into a Postgres Table. The file has the following format:
2019/12/13, 14:56:02, 3172.50, 3174.25, 3172.50, 3172.50, 1, 1, 1, 0
The table is defined as:
CREATE TABLE ...