Custom Column in pinscript strategy List of Trades - pine-script-v5

Just wondering. is it possible to add custom column in the List of Trades in pinescript strategy?
By default it only has these columns:
It would be very helpful just incase someone needs additional parameters to their study.
Thanks in advance.

Related

QUERY Specific column based on current date in google sheets

Please my sample sheet below:
https://docs.google.com/spreadsheets/d/1eDBqzwsyakyP3RGWAdNKs76Ia7JOGFwjIl_czREU0s0/edit?usp=sharing
I would like to know if I can query / filter a table to show someone's schedule based on the current date (Please see cell A25), I want to be able to have that table update based on the current date. Please advise. Thank you in advance, I appreciate all the help that I am getting from this group.
try simple:
=FILTER(B2:9, B1:1=B25)

Tableau converting dimension to measure

I have a technical question relating to Tableau. I have a Category field in the dimensions section which has three indicators: Disposable Income, GDP and Consumer Expenditure. I would like to convert 'Disposable Income' into a measure value on its own.
Is this possible to do?
I cannot share the Tableau data source due to data restrictions.
It is very easy. Add a calculated field named Disposable Income as-
IF [category] = 'Disposable Income' THEN [Measure_Val] END
Needless to say [Measure_val] is your measure field name here.
Alternate solution to your problem I propose here, but it needs reshaping your data altogether. I have created a sample data for explanation like this
select three years column and click on pivot.. you will get a view like this after renaming the fields appropriately
From here you can proceed as described above.

Arrivals based on database

I am trying to retrieve arrival rates from a excel spreadsheet in my model but I don't have the option to select the specific row and column i want. How can I ensure that a specific cell is chosen? (For example i want the value 5 corresponding to "limeConveyor" row and "red" column.
This is the sample spreadsheet
This is the properties window
Thank you in advance for your help! :)
Edit 1:
I am currently unable to select "red" from the
dropdown list of value column. Is my program bugged or something?
Maybe to clarify Felipe's reply: I suspect your dbase table is not setup correctly and doesn't match your xls screenshot.
First, load your spreadsheet into an AnyLogic dbase table using the wizard. It should then look like this (note the column properties: the column type is important):
Now in your source, you can easily load the required column-row combination and the valuer-dropdown allows you to select "red" if you want:
You can find the example model that I used for the screens here, hope this helps.

How to Sum two columns and merge it into one?

Right now my table is like:
But I want to show my table like:
I want to show the values in a single column for Shipment and Receipt, new to Qlikview so dont have any idea. Need guidance. Thanks in advance.
I think your problem is in the data model itself. 'Locked Trips S' is only referring to the 'Shipment' but has a value in 'Receipt' too. That shouldn't be a connection between these fields. Maybe provide a short screenshot of your data. That would help a lot :) !
And what about the 'Not Loaded Trips'? Where/How do you get it?
I would have commented this but I don't have the privilege :)
Problem solved, there is a column in database that contains the values - Shipment and Receipt,I used that column as dimension and removed null values with this calculated dimension:
=if([Transaction Type]<>' ',[Transaction Type])
and then in expression I wrote the expression =Count({}) as required.

How to get the design in iReports

I want the below design in iReports where column is generated dynamically based on a formula.
How can this be done? Please suggest.
You can use list component to achieve this.
I suggest that you use the crosstab component.
The crosstab allows you to set a data source for printing the columns.
The problem is, I don't know (and maybe it is not possible) to dynamically adjust the column with. If the number of columns varies in size your report will not have always the same layout.